当前位置:网站首页>无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称
无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称
2022-07-07 14:12:00 【Nailaoyyds】
前言
使用Pycharm创建新环境后,可能会使用pip安装一下包,但是会出现如下或类似如下报错:
因为刚开始报错是显示ModuleNotFoundError: No module named 'requests'
所以就用pip instal requests去安装,

刚开始的思路就是pycharm不能安装,就在文件夹里安装
提示
'C:\Users\86157\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip
安装成功

但是还是不可以使用

解决方案
通常出现这种情况是因为cmd(终端)无法识别pip指令,环境变量中缺失pip程序路径,因此需要手动将pip所在路径添加到环境变量。
问题描述:
pip : 无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1

先查看一下是否有安装pip,没有的话需要安装一下
通常情况下,配置的环境中都默认包含pip


把Scripts的路径添加到到环境变量中


配置完重启电脑以后就成功了
总结
本文所述方法原则上适用于任何版本pycharm与任何版本pip/conda等类似报错。
边栏推荐
- Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
- Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)
- What are compiled languages and interpreted languages?
- 神经网络c语言中的指针是怎么回事
- You Yuxi, coming!
- L'application à l'échelle de la normalisation mature des produits ai des compagnies maritimes, cimc, leader mondial de l'intelligence artificielle portuaire et maritime / intelligence artificielle des
- 2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
- Three. JS introductory learning notes 11:three JS group composite object
- 修改配置文件后tidb无法启动
- 过度依赖补助,大客户收款难,冲刺“国产数据库第一股”的达梦后劲有多足?
猜你喜欢

Statistical learning method -- perceptron

Xcode Revoke certificate

Enterprise log analysis system elk

强化实时数据管理,英方软件助力医保平台安全建设

Unity3d click events added to 3D objects in the scene

95. (cesium chapter) cesium dynamic monomer-3d building (building)

AE learning 02: timeline

95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)

【花雕体验】15 尝试搭建Beetle ESP32 C3之Arduino开发环境
![[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3](/img/8f/ca9ab042916f68de7994d9f2124da9.jpg)
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3
随机推荐
喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配
PHP中exit,exit(0),exit(1),exit(‘0’),exit(‘1’),die,return的区别
分类模型评价标准(performance measure)
Laravel constructor and middleware execution order
Enterprise log analysis system elk
招标公告:2022年云南联通gbase数据库维保公开比选项目(第二次)比选公告
What are compiled languages and interpreted languages?
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
Xcode Revoke certificate
laravel中将session由文件保存改为数据库保存
星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
Notification uses full resolution
Odoo integrated plausible embedded code monitoring platform
pycharm 终端部启用虚拟环境
MySQL数据库基本操作-DQL-基本查询
Vs tool word highlight with margin
ThinkPHP URL 路由简介
深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
Shipping companies' AI products are mature, standardized and applied on a large scale. CIMC, the global leader in port and shipping AI / container AI, has built a benchmark for international shipping
95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)