修复windows path环境变量以查找python.exe、pip.exe等
fix-winpath的Python项目详细描述
修复winpath
如果您确定python已安装在windows计算机上,但在尝试从windows终端运行python
时仍遇到以下问题:
C:\Users\Joe> python
'python' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Joe> pip install requests
'pip' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Joe> jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file.
fix-winpath
可能有助于修复windows的path环境变量。
说明
检查是否可以首先使用py
启动程序启动python:
C:\Users\Guest>py --version
Python 3.7.0
假设上面的行可以工作,请使用以下命令安装fix-winpath
:
py -3 -m pip install --upgrade fix-winpath
安装包后,请使用:
成功修复PATH
py -3 -m fix_winpath -i