【发布时间】:2017-08-08 09:08:47
【问题描述】:
之前我使用 Chocolatey 安装了 Python 3.5,但是当我发现我只需要使用的库只允许用于 Python 版本 2 时 - 我卸载了 Python 3.5,然后从控制面板安装了 Python 2.7.3。
我确保我为 Python 正确设置了 PATH 变量 -
PATH=....;C:\Python27
但是当我从提示符调用 python 时仍然出现以下错误:
C:\>python
Cannot find file at '..\\lib\python3\tools\python.exe'
(C:\ProgramData\chocolatey\lib\python3\tools\python.exe). This usually
indicates a missing or moved file.
如何解决巧克力包管理器问题?
【问题讨论】:
-
看看你的环境变量
-
看起来
PYTHONHOME保持不变。 -
PYTHONHOME 似乎没有设置 - C:\>echo %PYTHONHOME% %PYTHONHOME%
标签: python chocolatey