当前位置:网站首页>无法将“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等类似报错。
边栏推荐
- ThinkPHP URL 路由简介
- AE learning 02: timeline
- 山东老博会,2022中国智慧养老展会,智能化养老、适老科技展
- 谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
- Communication mode between application program and MATLAB
- 47_ Contour lookup in opencv cv:: findcontours()
- Three. JS introductory learning notes 10:three JS grid
- Power of leetcode-231-2
- Numpy --- basic learning notes
- Plate - forme de surveillance par étapes zabbix
猜你喜欢
Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
10 schemes to ensure interface data security
Dotween -- ease function
Vs tool word highlight with margin
Application example of infinite list [uigridview]
Three. JS introductory learning notes 10:three JS grid
Three. JS introductory learning notes 15: threejs frame animation module
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
Sysom case analysis: where is the missing memory| Dragon lizard Technology
You Yuxi, coming!
随机推荐
Laravel 中config的用法
记一次项目的迁移过程
Logback日志框架第三方jar包 免费获取
强化实时数据管理,英方软件助力医保平台安全建设
TCP framework___ Unity
Migration and reprint
Leetcode-231-2的幂
[hcsd celebrity live broadcast] teach the interview tips of big companies in person - brief notes
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
Leetcode-136- number that appears only once (solve with XOR)
2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
模仿企业微信会议室选择
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
MySQL数据库基本操作-DQL-基本查询
山东老博会,2022中国智慧养老展会,智能化养老、适老科技展
Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)
招标公告:福建省农村信用社联合社数据库审计系统采购项目(重新招标)
2022 the 4th China (Jinan) International Smart elderly care industry exhibition, Shandong old age Expo
AE learning 01: AE complete project summary
Application example of infinite list [uigridview]