这是咋回事
来源:1-2 认识Web认识Django

huaiyin
2019-10-22
命令
$virtualenv -p python django_env
环境
- windows 10
- python 3.6.6(自动安装,自动加path)
- 如果按视频手动安装会出现无法使用pip等
报错
Complete output from command D:\00.LEARN\PYTHON\d...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\王向南\appdata\local\programs\python\python36-32\lib\site-packages\virtualenv.py", line 2628, in <module>
main()
File "c:\users\王向南\appdata\local\programs\python\python36-32\lib\site-packages\virtualenv.py", line 870, in main
symlink=options.symlink,
File "c:\users\王向南\appdata\local\programs\python\python36-32\lib\site-packages\virtualenv.py", line 1173, in create_en
vironment
install_wheel(to_install, py_executable, search_dirs, download=download)
File "c:\users\王向南\appdata\local\programs\python\python36-32\lib\site-packages\virtualenv.py", line 1019, in install_w
heel
_install_wheel_with_search_dir(download, project_names, py_executable, search_dirs)
File "c:\users\王向南\appdata\local\programs\python\python36-32\lib\site-packages\virtualenv.py", line 1110, in _install_
wheel_with_search_dir
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=script)
File "c:\users\王向南\appdata\local\programs\python\python36-32\lib\site-packages\virtualenv.py", line 963, in call_subpr
ocess
raise OSError("Command {} failed with error code {}".format(cmd_desc, proc.returncode))
OSError: Command D:\00.LEARN\PYTHON\d...v\Scripts\python.exe - setuptools pip wheel failed with error code 1
写回答
1回答
-
virtualenv envname --no-setuptools --no-pip --no-wheel 在cmd中输入这个回车就可以了. 另外还是建议使用linux系统。公司里还是linux居多,不然可能出现你开发没问题,一上服务器就各种问题的可能
012019-10-22
相似问题