当前位置:网站首页>无法将“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等类似报错。
边栏推荐
- 分步式監控平臺zabbix
- [excelexport], Excel to Lua, JSON, XML development tool
- U3D_ Infinite Bessel curve
- Sysom case analysis: where is the missing memory| Dragon lizard Technology
- 95. (cesium chapter) cesium dynamic monomer-3d building (building)
- Shader_ Animation sequence frame
- JS modularization
- Regular expression string
- Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
- 95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
猜你喜欢
Lecturer solicitation order | Apache seatunnel (cultivating) meetup sharing guests are in hot Recruitment!
模仿企业微信会议室选择
Numpy --- basic learning notes
pycharm 终端部启用虚拟环境
C4D learning notes 3- animation - animation rendering process case
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
Odoo集成Plausible埋码监控平台
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
C4D learning notes 1- animation - animation key frames
企业级日志分析系统ELK
随机推荐
U3D_ Infinite Bessel curve
Application example of infinite list [uigridview]
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
php 自带过滤和转义函数
Markdown formula editing tutorial
hellogolang
The unity vector rotates at a point
laravel 是怎么做到运行 composer dump-autoload 不清空 classmap 映射关系的呢?
10 schemes to ensure interface data security
Three. JS introductory learning notes 13: animation learning
There are many ways to realize the pause function in JS
Description of vs common shortcut keys
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
航天宏图信息中标乌鲁木齐某单位数据库系统研发项目
Limit of total fields [1000] in index has been exceeded
How to implement backspace in shell
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
Numpy -- epidemic data analysis case
Three. JS introductory learning notes 10:three JS grid
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术