pipenv install 报错,错误信息如下
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/pexpect/expect.py", line 96, in expect_loop
return self.timeout()
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/pexpect/expect.py", line 70, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7fca037cc828>
searcher: searcher_re:
0: EOF
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 11, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pipenv/cli.py", line 353, in install
selective_upgrade=selective_upgrade,
File "/usr/local/lib/python3.5/dist-packages/pipenv/core.py", line 1725, in do_install
skip_requirements=skip_requirements,
File "/usr/local/lib/python3.5/dist-packages/pipenv/core.py", line 646, in ensure_project
ensure_virtualenv(three=three, python=python, site_packages=site_packages)
File "/usr/local/lib/python3.5/dist-packages/pipenv/core.py", line 600, in ensure_virtualenv
do_create_virtualenv(python=python, site_packages=site_packages)
File "/usr/local/lib/python3.5/dist-packages/pipenv/core.py", line 979, in do_create_virtualenv
click.echo(crayons.blue(c.out), err=True)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/delegator.py", line 99, in out
self.__out = self._pexpect_out
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/delegator.py", line 87, in _pexpect_out
result += self.subprocess.read()
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/pexpect/spawnbase.py", line 427, in read
self.expect(self.delimiter)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/pexpect/spawnbase.py", line 327, in expect
timeout, searchwindowsize, async_)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/pexpect/spawnbase.py", line 355, in expect_list
return exp.expect_loop(timeout)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/pexpect/expect.py", line 106, in expect_loop
return self.timeout(e)
File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/pexpect/expect.py", line 70, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7fca037cc828>
searcher: searcher_re:
0: EOF
<pexpect.popen_spawn.PopenSpawn object at 0x7fca037cc828>
searcher: searcher_re:
0: EOF
huahua@huahu
将命令加上 sudo -H pipenv install
就可以了,不知道是为啥?