在 virtualenv venv 期间未安装 Pip
Pip not installing during virtualenv venv
过去几周我使用 virtualenv venv
创建了几个虚拟环境。但是突然就不行了。当我进行更深入的检查时,安装将在 pip 阶段停止。我试过 virtualenv venv
和 virtualenv venv -v
。我也试过 virtualenv venv --no-pip
这进一步证实了问题出在 pip 内。
Looking in links: file:///C:/users/mong%20chang%20hsi/appdata/local/programs/python/python36/lib/>site-packages/virtualenv_support
Collecting setuptools
Collecting pip
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "C:\Users\Mong Chang Hsi\AppData\Local\Programs\Python\Python36\Scripts\virtualenv-script.py", line 11, in <module>
load_entry_point('virtualenv==16.6.2', 'console_scripts', 'virtualenv')()
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 867, in main
symlink=options.symlink,
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 1159, in create_environment
install_wheel(to_install, py_executable, search_dirs, download=download)
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 1009, in install_wheel
_install_wheel_with_search_dir(download, project_names, py_executable, search_dirs)
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 1096, in _install_wheel_with_search_dir
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=script)
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 934, in call_subprocess
line = stdout.readline()
KeyboardInterrupt
尝试这样做python3 -m venv name_of_environment
过去几周我使用 virtualenv venv
创建了几个虚拟环境。但是突然就不行了。当我进行更深入的检查时,安装将在 pip 阶段停止。我试过 virtualenv venv
和 virtualenv venv -v
。我也试过 virtualenv venv --no-pip
这进一步证实了问题出在 pip 内。
Looking in links: file:///C:/users/mong%20chang%20hsi/appdata/local/programs/python/python36/lib/>site-packages/virtualenv_support
Collecting setuptools
Collecting pip
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "C:\Users\Mong Chang Hsi\AppData\Local\Programs\Python\Python36\Scripts\virtualenv-script.py", line 11, in <module>
load_entry_point('virtualenv==16.6.2', 'console_scripts', 'virtualenv')()
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 867, in main
symlink=options.symlink,
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 1159, in create_environment
install_wheel(to_install, py_executable, search_dirs, download=download)
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 1009, in install_wheel
_install_wheel_with_search_dir(download, project_names, py_executable, search_dirs)
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 1096, in _install_wheel_with_search_dir
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=script)
File "c:\users\mong chang hsi\appdata\local\programs\python\python36\lib\site-packages\virtualenv.py", line 934, in call_subprocess
line = stdout.readline()
KeyboardInterrupt
尝试这样做python3 -m venv name_of_environment