Python virtualenv:系统找不到指定的路径

问题描述 投票:0回答:1

按照本教程virtualenv我收到此消息:

C:\Users\Dev\Desktop>mkvirtualenv AndroidKivy
C:\Users\Dev\Envs is not a directory, creating
Running virtualenv with interpreter C:/Python27/python.exe
Overwriting C:\Users\Dev\Envs\AndroidKivy\lib\orig-prefix.txt with new content
New python executable in C:\Users\Dev\Envs\AndroidKivy\Scripts\python.exe
Installing setuptools, pip, wheel...done.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.

我读到这个mkvirtualenv导致错误:系统找不到指定的路径并使用命令

where python.exe
。我的 PATH 中只有一个 python.exe 运行时,所以一开始我的问题不适合它。

C:\Python27\python.exe

再次找到这个主题Stackoverflow。即使像这样执行

mkvirtualenv -p C:/Python27/python.exe AndroidKivy
我也收到同样的错误。

画中画列表

pip (9.0.1)
setuptools (28.8.0)
virtualenv (15.2.0)
virtualenvwrapper-win (1.2.5)

使用:Windows 10Python 2.7

python virtualenv
1个回答
0
投票

我使用的是Windows 我的

C:\Users\User\AppData\Local\Programs\Python
中有旧的 python 文件(我将 python 3.8 更新为 3.12) 我使用的是 python 3.12,但 venv 包装器尝试使用 3.8 的

我删除了旧文件,它开始工作了

© www.soinside.com 2019 - 2024. All rights reserved.