[英]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.