我是Django的新手,并且正在使用React启动Django的教程,而我正在努力使用创建虚拟环境
pipenv shell
按照教程的说明进行操作。我见过类似的问题,但是它们要么是另一个python版本,要么是错误有所不同,答案并没有帮助我。该错误显示以下内容:
Failed creating virtual environment
[pipenv.exceptions.VirtualenvCreationException]: File "C:\Users\Iván\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pipenv\cli\command.py", line 385, in shell
[pipenv.exceptions.VirtualenvCreationException]: do_shell(
[pipenv.exceptions.VirtualenvCreationException]: File "C:\Users\Iván\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pipenv\core.py", line 2155, in do_shell
[pipenv.exceptions.VirtualenvCreationException]: ensure_project(
[pipenv.exceptions.VirtualenvCreationException]: File "C:\Users\Iván\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pipenv\core.py", line 570, in ensure_project
[pipenv.exceptions.VirtualenvCreationException]: ensure_virtualenv(
[pipenv.exceptions.VirtualenvCreationException]: File "C:\Users\Iván\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pipenv\core.py", line 505, in ensure_virtualenv
[pipenv.exceptions.VirtualenvCreationException]: do_create_virtualenv(
[pipenv.exceptions.VirtualenvCreationException]: File "C:\Users\Iván\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pipenv\core.py", line 934, in do_create_virtualenv
[pipenv.exceptions.VirtualenvCreationException]: raise exceptions.VirtualenvCreationException(
[pipenv.exceptions.VirtualenvCreationException]: Traceb
我重新安装了pip(19.3.1)和pipenv,确保没有任何更改,并且我的环境变量是正确的,我认为它们如下: Variable (PYTHONPATH)
答案 0 :(得分:1)
尝试: python -m virtualenv venv