简体   繁体   English

Python:pipenv 错误(ValueError:不是有效的 Python 路径:'C:/Users/LGIT/$USERPROFILE$/Local/Programs/Python2/Python27/Scripts/python.exe')

[英]Python: pipenv Error (ValueError: Not a valid python path: 'C:/Users/LGIT/$USERPROFILE$/Local/Programs/Python2/Python27/Scripts/python.exe')

I just switched from using venv to pipenv.我刚刚从使用 venv 切换到 pipenv。 But after I installed pipven through pip:但是在我通过 pip 安装 pipven 之后:

python -m pip install pipenv

I moved to my new project directory and done creating the virtual environment via:我移动到我的新项目目录并通过以下方式创建了虚拟环境:

pipenv shell

Then receive the following error message:然后收到以下错误消息:

...
ValueError: Not a valid python path: 'C:/Users/%USERPROFILE%/AppData/Local/Programs/Python2/Python27/Scripts/python.exe'

I have check the "Environment Variables" and I set it right.我检查了“环境变量”并设置正确。 How can I solve this Problems?我该如何解决这个问题? Many Thanks!!非常感谢!!

I have fixed the problem, by using older version of pipenv:我已经通过使用旧版本的 pipenv 解决了这个问题:

pip install pipenv==2018.10.13

I don't know why this happen but it work with me我不知道为什么会这样,但它对我有用

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 c:\\ python27 \\ python.exe:无法打开文件'C:\\ Python27 \\ Scripts \\ slicer':[Errno 2]没有此类文件或目录 - c:\python27\python.exe: can't open file 'C:\Python27\Scripts\slicer': [Errno 2] No such file or directory 启动器中的致命错误:无法使用““ c:\\ python27 \\ python.exe”创建进程 - Fatal error in launcher: Unable to create process using '“c:\python27\python.exe” C:\\ Python27 \\ python.exe:无法打开文件'/ cygdrive / c / Python27 / Scripts / Program':[错误2]没有此类文件或目录 - C:\Python27\python.exe: can't open file '/cygdrive/c/Python27/Scripts/Program': [Errno 2] No such file or directory Pipenv 错误“'C:\Python39\python.exe' 处没有 Python” - Pipenv error "No Python at 'C:\Python39\python.exe' " VsCode 中的“C:\Users\AccountName\AppData\Local\Programs\Python\Python38-32\python.exe”错误中没有 python - no python at "C:\Users\AccountName\AppData\Local\Programs\Python\Python38-32\python.exe" error in VsCode 在Windows 8中将C:\\ Python27 \\ Scripts添加到路径 - Add C:\Python27\Scripts to path in Windows 8 python.exe 的路径 - Path to python.exe 为什么我得到 (gsutil): "C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37\\python.exe": command not found - why am i getting (gsutil): "C:\Users\user\AppData\Local\Programs\Python\Python37\python.exe": command not found Python 安装程序:“写入文件 C:\\Python27\\pythonw.exe 时出错” - Python Installer: "Error writing to file C:\Python27\pythonw.exe" 使用pyinstaller构建Python27 exe - Python27 building exe with pyinstaller
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM