Wenn ich den Befehl virtualenv venv
zum Erstellen der Python virtuellen Umgebung zu erstellen, wird der folgende Fehler aufgetreten:Fehler bei Verwendung des Befehls „virtualenv Venv“ mit Python virtuellen Umgebung
D:\Flask>virtualenv venv
Using base prefix 'd:\\APP\\python'
New python executable in D:\Flask\venv\Scripts\python.exe
Installing setuptools, pip, wheel...
Complete output from command D:\Flask\venv\Scripts\python.exe - setuptools pip wheel:
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
ImportError: No module named 'pkgutil'
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "d:\APP\python\lib\runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "d:\APP\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\APP\python\Scripts\virtualenv.exe\__main__.py", line 9, in <module>
File "d:\APP\python\lib\site-packages\virtualenv.py", line 713, in main
symlink=options.symlink)
File "d:\APP\python\lib\site-packages\virtualenv.py", line 945, in create_environment
download=download,
File "d:\APP\python\lib\site-packages\virtualenv.py", line 901, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "d:\APP\python\lib\site-packages\virtualenv.py", line 797, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command D:\Flask\venv\Scripts\python.exe - setuptools pip wheel failed with error code 1
ich es gegoogelt aber nicht finden eine Lösung. Weiß jemand, wie man damit umgeht?
Die Fehlermeldung ist ähnlich http://stackoverflow.com/ q/37637872 Haben Sie diese Lösung versucht? –
Mögliches Duplikat von [Virtualenv OSError - Setuptools-Pip-Rad ist mit Fehlercode 1 fehlgeschlagen] (http://stackoverflow.com/questions/37637872/virtualenv-oserror-setuptools-pip-wheel-failed-with-error-code-1) –