C:\Users\danie01\fox\test\robotframework>pipenv install --python 3.5
Creating a virtualenv for this project...
Pipfile: C:\Users\danie01\fox\test\robotframework\Pipfile
Using C:\Users\danie01\AppData\Local\Programs\Python\Python35\python.exe (3.5.0) to create virtualenv...
Traceback (most recent call last):
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\pexpect\expect.py", line 109, in expect_loop
return self.timeout()
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\pexpect\expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x05020630>
searcher: searcher_re:
0: EOF
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\danie01\AppData\Local\Programs\Python\Python36-32\Scripts\pipenv.exe\__main__.py", line 9, in <module>
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\cli.py", line 435, in install
selective_upgrade=selective_upgrade,
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\core.py", line 1759, in do_install
pypi_mirror=pypi_mirror,
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\core.py", line 609, in ensure_project
three=three, python=python, site_packages=site_packages, pypi_mirror=pypi_mirror
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\core.py", line 556, in ensure_virtualenv
do_create_virtualenv(python=python, site_packages=site_packages, pypi_mirror=pypi_mirror)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\core.py", line 934, in do_create_virtualenv
click.echo(crayons.blue(c.out), err=True)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\delegator.py", line 99, in out
self.__out = self._pexpect_out
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\delegator.py", line 87, in _pexpect_out
result += self.subprocess.read()
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\pexpect\spawnbase.py", line 441, in read
self.expect(self.delimiter)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\pexpect\spawnbase.py", line 341, in expect
timeout, searchwindowsize, async_)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\pexpect\spawnbase.py", line 369, in expect_list
return exp.expect_loop(timeout)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\pexpect\expect.py", line 119, in expect_loop
return self.timeout(e)
File "c:\users\danie01\appdata\local\programs\python\python36-32\lib\site-packages\pipenv\vendor\pexpect\expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x05020630>
searcher: searcher_re:
0: EOF
<pexpect.popen_spawn.PopenSpawn object at 0x05020630>
searcher: searcher_re:
0: EOF
似乎问题可能是我希望它使用python 3.5安装pipenv,但它使用的是python 3.6?我既已安装又在PATH中。我不确定为什么安装程序会超时。
我以前安装了3.6版本的pipenv并以某种难度将其删除(我必须手动删除virutalenv),所以这可能是原因的一部分。
编辑:
再次尝试,它将永远挂在Using C:\Users\danie01\AppData\Local\Programs\Python\Python35\python.exe (3.5.0) to create virtualenv...
答案 0 :(得分:3)
在Windows上,关闭Windows Defender对我有用。我没有超时,并且安装速度更快。
答案 1 :(得分:1)
在Raspbian上的Raspberry Pi 3B +上安装时,这对我有帮助。
export PIPENV_TIMEOUT=9999
pipenv install requests
答案 2 :(得分:0)
您可以删除旧的virtualenv [requires]
python_version = "3.5"
检查Pipfile中的python版本
cd C:\Users\danie01\fox\test\robotframework
pipenv install
转到您的项目后,再次创建您的virtualenv
http://localhost:7474/browser/
答案 3 :(得分:0)
答案 4 :(得分:0)
根据运行pipenv install
命令的位置,将环境变量PIP_NO_CACHE_DIR
设置为off
。就我而言,我在Dockerfile中对此进行了设置,方法是在ENV PIP_NO_CACHE_DIR=false
之前有一行RUN pipenv install
答案 5 :(得分:0)
我正在使用url = "https://pypi.tuna.tsinghua.edu.cn/simple"
,对于安装的每个依赖项,我都会遇到超时错误。当我将网址更改为简单有效时。
[[source]]
name = "pypi"
url = "https://pypi.python.org/simple"
verify_ssl = true
答案 6 :(得分:0)
尝试做ReactDOM.render(
<App />,
rootElement
);
-删除虚拟环境
然后pipenv --rm
-这将再次启动虚拟环境
然后再次pipenv shell
为我工作