[英]No module named PIP || PIP command not working (PIP 3.7)
我只是下载了 python zip 最新版本并且已经安装了 pip 和(wheel 等)我无法运行 pip 命令。 CMD 说“没有名为 PIP 的模块”
我在脚本中运行了 DIR 命令,里面有 pip
S:\{ Installed }\Phyton\Scripts>dir
Volume in drive S is Software
Volume Serial Number is 1488-3DE4
Directory of S:\{ Installed }\Phyton\Scripts
06/03/2019 05:41 PM <DIR> .
06/03/2019 05:41 PM <DIR> ..
06/03/2019 05:41 PM 102,775 easy_install-3.7.exe
06/03/2019 05:41 PM 102,775 easy_install.exe
06/03/2019 05:41 PM 102,757 pip.exe
06/03/2019 05:41 PM 102,757 pip3.7.exe
06/03/2019 05:41 PM 102,757 pip3.exe
06/03/2019 05:41 PM 102,753 wheel.exe
6 File(s) 616,574 bytes
2 Dir(s) 40,247,717,888 bytes free
然后,我尝试运行这些命令仍然有相同的输出:
pip install –upgrade esptool ||
pip install esptool
您已经安装了 pip,但您需要在系统路径中使用它们。 从系统属性 > 高级 > 环境变量,您需要按如下方式设置您的 Python DLL、Lib 和二进制文件(我的设置如下):
PYTHON_HOME C:\Program Files\Python37\ System
Path %PYTHON_HOME%\ System or User
Path %PYTHON_HOME%\Scripts\ System or User
另外,请确保您的 Pythonpath 设置如下:
PythonPath C:\Program Files\Python37
C:\Program Files\Python37\DLLs
C:\Program Files\Python37\Lib
您可能需要注销然后登录才能生效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.