Python 3.7.0
Windows 10
PS C:\Users\Ербатыр\virenvs> virtualenv majesty
Using base prefix 'c:\\users\\ербатыр\\appdata\\local\\programs\\python\\python36'
New python executable in C:\Users\Ербатыр\virenvs\majesty\Scripts\python.exe
Installing setuptools, pip, wheel...
Complete output from command C:\Users\Ербатыр\vir...y\Scripts\python.exe - setuptools pip wheel:
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
ModuleNotFoundError: No module named 'pkgutil'
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "c:\users\ербатыр\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\ербатыр\appdata\local\programs\python\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Ербатыр\AppData\Local\Programs\Python\Python36\Scripts\virtualenv.exe\__main__.py", line 9, in <module>
File "c:\users\ербатыр\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 712, in main
symlink=options.symlink)
File "c:\users\ербатыр\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 947, in create_environment
download=download,
File "c:\users\ербатыр\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 904, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "c:\users\ербатыр\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 796, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command C:\Users\Ербатыр\vir...y\Scripts\python.exe - setuptools pip wheel failed with error code 1
Ich auch
virtualenv venv
Using base prefix 'c:\\users\\pawełolszewski\\appdata\\local\\programs\\python\\python37-32'
New python executable in C:\repos\DET\Det.AutomatedTesting\venv\Scripts\python.exe
Installing setuptools, pip, wheel...
Complete output from command C:\repos\DET\Det.Aut...v\Scripts\python.exe - setuptools pip wheel:
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
ModuleNotFoundError: No module named 'pkgutil'
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "c:\users\pawełolszewski\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\pawełolszewski\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\PawełOlszewski\AppData\Local\Programs\Python\Python37-32\Scripts\virtualenv.exe\__main__.py", line 9, in <module>
File "c:\users\pawełolszewski\appdata\local\programs\python\python37-32\lib\site-packages\virtualenv.py", line 762, in main
symlink=options.symlink,
File "c:\users\pawełolszewski\appdata\local\programs\python\python37-32\lib\site-packages\virtualenv.py", line 1015, in create_environment
install_wheel(to_install, py_executable, search_dirs, download=download)
File "c:\users\pawełolszewski\appdata\local\programs\python\python37-32\lib\site-packages\virtualenv.py", line 968, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "c:\users\pawełolszewski\appdata\local\programs\python\python37-32\lib\site-packages\virtualenv.py", line 854, in call_subprocess
raise OSError("Command {} failed with error code {}".format(cmd_desc, proc.returncode))
OSError: Command C:\repos\DET\Det.Aut...v\Scripts\python.exe - setuptools pip wheel failed with error code 1
Bitte versuche:
python -m venv <desired_venv_path>
Dies hat nicht genügend Informationen zum Replizieren. Erwägen Sie die Bereitstellung einer genauen Umgebungsbeschreibung mit Paketversionen usw. Wir werden wieder öffnen, sobald dies geschieht, danke!
Habe heute das gleiche Problem. Es wurde behoben, indem Python aus Appdata nach 'c:python37' entfernt wurde. Es liegt daran, dass der Pfadname Unicode-Zeichen enthält.
Dies hängt wahrscheinlich damit zusammen, dass Ihr Python-PFAD Nicht-ASCII-Zeichen enthält. Ich hatte gerade das gleiche Problem mit Windows 10 und Python 3.7.3, während Python in C:\Users\Rémy Roy\AppData\Local\Programs\Python\Python37-32
installiert war. Ich habe Python in C:\Python37-32
neu installiert und das Problem wurde behoben.
Hilfreichster Kommentar
Bitte versuche:
python -m venv <desired_venv_path>