当前位置:网站首页>无法将“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等类似报错。
边栏推荐
- Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
- 招标公告:盘锦市人民医院盘锦医院数据库维保项目
- 通知Notification使用全解析
- 航運船公司人工智能AI產品成熟化標准化規模應用,全球港航人工智能/集裝箱人工智能領軍者CIMC中集飛瞳,打造國際航運智能化標杆
- Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models
- Three. JS introduction learning notes 12: the model moves along any trajectory line
- 过度依赖补助,大客户收款难,冲刺“国产数据库第一股”的达梦后劲有多足?
- iptables只允许指定ip地址访问指定端口
- Use moviepy Editor clips videos and intercepts video clips in batches
- 121. 买卖股票的最佳时机
猜你喜欢

Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"

C4D learning notes 3- animation - animation rendering process case

2022第四届中国(济南)国际智慧养老产业展览会,山东老博会

What about the pointer in neural network C language

Excessive dependence on subsidies, difficult collection of key customers, and how strong is the potential to reach the dream of "the first share of domestic databases"?

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

融云斩获 2022 中国信创数字化办公门户卓越产品奖!

Talk about the cloud deployment of local projects created by SAP IRPA studio

AE learning 01: AE complete project summary

Continuous creation depends on it!
随机推荐
Laravel 服务提供者实例教程 —— 创建 Service Provider 测试实例
Unity的三种单例模式(饿汉,懒汉,MonoBehaviour)
torch. Numel action
What about the pointer in neural network C language
Odoo integrated plausible embedded code monitoring platform
php 自带过滤和转义函数
分类模型评价标准(performance measure)
Odoo集成Plausible埋码监控平台
深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)
Shader basic UV operations, translation, rotation, scaling
There are many ways to realize the pause function in JS
hellogolang
记一次项目的迁移过程
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
TCP framework___ Unity
How to determine whether the checkbox in JS is selected
如何在shell中实现 backspace
U3D_ Infinite Bessel curve
hellogolang
统计学习方法——感知机