pipenv install后报错
来源:2-3 使用官方推荐的pipenv创建虚拟环境(很好用哦~)

颜丑文良
2019-03-18
C:\Users\彬\Desktop\fisher>pipenv install
Creating a virtualenv for this project…
Pipfile: C:\Users\彬\Desktop\fisher\Pipfile
Using c:\users\彬\appdata\local\programs\python\python37\python.exe (3.7.0) to create virtualenv…
[ ===] Creating virtual environment...Already using interpreter c:\users\彬\appdata\local\programs\python\python37\python.exe
Using base prefix 'c:\\users\\彬\\appdata\\local\\programs\\python\\python37'
New python executable in C:\Users\彬\.virtualenvs\fisher-xhCmPScG\Scripts\python.exe
Command C:\Users\彬\.virtuale...G\Scripts\python.exe -m pip config list had error code 1
Installing setuptools, pip, wheel...
Complete output from command C:\Users\彬\.virtuale...G\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.
Failed creating virtual environment
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\pipenv\cli\command.py", line 254, in install
[pipenv.exceptions.VirtualenvCreationException]: editable_packages=state.installstate.editables,
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\pipenv\core.py", line 1741, in do_install
[pipenv.exceptions.VirtualenvCreationException]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\pipenv\core.py", line 574, in ensure_project
[pipenv.exceptions.VirtualenvCreationException]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\pipenv\core.py", line 506, in ensure_virtualenv
[pipenv.exceptions.VirtualenvCreationException]: python=python, site_packages=site_packages, pypi_mirror=pypi_mirror
[pipenv.exceptions.VirtualenvCreationException]: File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\pipenv\core.py", line 935, in do_create_virtualenv
[pipenv.exceptions.VirtualenvCreationException]: extra=[crayons.blue("{0}".format(c.err)),]
[pipenv.exceptions.VirtualenvCreationException]: Traceback (most recent call last):
File "c:\users\彬\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\彬\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\virtualenv.py", line 2567, in <module>
main()
File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\virtualenv.py", line 793, in main
symlink=options.symlink,
File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\virtualenv.py", line 1088, in create_environment
install_wheel(to_install, py_executable, search_dirs, download=download)
File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\virtualenv.py", line 935, in install_wheel
_install_wheel_with_search_dir(download, project_names, py_executable, search_dirs)
File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\virtualenv.py", line 1025, in _install_wheel_with_search_dir
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=script)
File "c:\users\彬\appdata\local\programs\python\python37\lib\site-packages\virtualenv.py", line 886, in call_subprocess
raise OSError("Command {} failed with error code {}".format(cmd_desc, proc.returncode))
OSError: Command C:\Users\彬\.virtuale...G\Scripts\python.exe - setuptools pip wheel failed with error code 1
写回答
1回答
-
这种问题有很多种可能:1. 网络不好 2. 安装的包有问题
042019-07-23
相似问题