virtualenvwrapper-4.1.1 死活装不上去啊.....

2013-12-11 16:31:07 +08:00
 zjgsamuel
干净的ubuntu 12.04 LTS 装完 系统全部更新好
安装
sudo apt-get install gcc python-dev libxml2 libxml2-dev libxslt1.1 libxslt1-dev libevent-dev

然后安装 sudo pip install virtualenv

接着安装 sudo pip install virtualenvwrapper
就成这副样子了
Downloading/unpacking virtualenvwrapper
Downloading virtualenvwrapper-4.1.1.tar.gz (81Kb): 81Kb downloaded
Running setup.py egg_info for package virtualenvwrapper
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/freeswitch/build/virtualenvwrapper/setup.py", line 7, in <module>
pbr=True,
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 221, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 245, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 576, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 821, in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 833, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 294, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 595, in easy_install
self.local_index
File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 492, in fetch_distribution
dist = find(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 475, in find
location=self.download(dist.location, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 414, in download
found = self._download_url(scheme.group(1), spec, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 663, in _download_url
return self._attempt_download(url, filename)
File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 672, in _attempt_download
headers = self._download_to(url, filename)
File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 588, in _download_to
block = fp.read(bs)
File "/usr/lib/python2.7/socket.py", line 380, in read
data = self._sock.recv(left)
File "/usr/lib/python2.7/httplib.py", line 561, in read
s = self.fp.read(amt)
File "/usr/lib/python2.7/socket.py", line 380, in read
data = self._sock.recv(left)
File "/usr/lib/python2.7/ssl.py", line 241, in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 160, in read
return self._sslobj.read(len)
ssl.SSLError: The read operation timed out
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 14, in <module>

File "/home/freeswitch/build/virtualenvwrapper/setup.py", line 7, in <module>

pbr=True,

File "/usr/lib/python2.7/distutils/core.py", line 112, in setup

_setup_distribution = dist = klass(attrs)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 221, in __init__

self.fetch_build_eggs(attrs.pop('setup_requires'))

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 245, in fetch_build_eggs

parse_requirements(requires), installer=self.fetch_build_egg

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 576, in resolve

dist = best[req.key] = env.best_match(req, self, installer)

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 821, in best_match

return self.obtain(req, installer) # try and download/install

File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 833, in obtain

return installer(requirement)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 294, in fetch_build_egg

return cmd.easy_install(req)

File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 595, in easy_install

self.local_index

File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 492, in fetch_distribution

dist = find(requirement)

File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 475, in find

location=self.download(dist.location, tmpdir)

File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 414, in download

found = self._download_url(scheme.group(1), spec, tmpdir)

File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 663, in _download_url

return self._attempt_download(url, filename)

File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 672, in _attempt_download

headers = self._download_to(url, filename)

File "/usr/lib/python2.7/dist-packages/setuptools/package_index.py", line 588, in _download_to

block = fp.read(bs)

File "/usr/lib/python2.7/socket.py", line 380, in read

data = self._sock.recv(left)

File "/usr/lib/python2.7/httplib.py", line 561, in read

s = self.fp.read(amt)

File "/usr/lib/python2.7/socket.py", line 380, in read

data = self._sock.recv(left)

File "/usr/lib/python2.7/ssl.py", line 241, in recv

return self.read(buflen)

File "/usr/lib/python2.7/ssl.py", line 160, in read

return self._sslobj.read(len)

ssl.SSLError: The read operation timed out

----------------------------------------
Command python setup.py egg_info failed with error code 1



更新好setuptools
sudo pip install --upgrade setuptools

貌似也不行 卡在了 Running setup.py egg_info for package virtualenvwrapper

我试了2台机器了都是这样的情况,以前很顺溜的呀

ssl.SSLError: The read operation timed out 不知道为嘛会出现这个超时错误 SSL-dev 啥的我也都装好了呀,很是奇怪
5550 次点击
所在节点    Python
14 条回复
ufo22940268
2013-12-11 19:52:48 +08:00
要不翻个墙试试?
sfdye
2013-12-12 08:20:15 +08:00
直接下载zip包 sudo python setup.py install
too
2013-12-12 09:48:38 +08:00
可以试试用国内的 pypi 镜像,比如豆瓣的
zjgsamuel
2013-12-12 13:11:05 +08:00
@sfdye 我回头试试这个办法 谢拉
@too 恩 国内的源都换了个遍了 一直是这个问题 准备收工装了
zjgsamuel
2013-12-12 13:38:55 +08:00
@sfdye 晕了 直接安装也提示 ssl.SSLError: The read operation timed out 难道真的要研究一下ubuntu server 怎么翻墙 还是就 virtualenv 用用得了..
sfdye
2013-12-12 13:43:30 +08:00
@zjgsamuel 就用virtualenv吧
sitin
2013-12-12 20:34:05 +08:00
之前在air上也死活装不上,想想,就多一个步骤,觉得折腾这点时间早都进去了。
melaozhu
2013-12-23 12:46:48 +08:00
除了virtualenvwrapper呢,有没有试试其他包可不可以?或者是OpenSSL没装?这边有个装Django出现一样错误的,可以参考一下 http://stackoverflow.com/questions/18958508/sslerror-the-read-operation-timed-out-when-using-pip
zjgsamuel
2013-12-23 20:21:19 +08:00
@melaozhu 我之前在装的时候也设置过超时的等待时间 可能是设置的不对 现在可以安装了 万分感谢哈~~
spark
2014-02-12 13:13:03 +08:00
@zjgsamuel 我今天遇到这个问题了, 确定就是墙的问题, 翻吧
zjgsamuel
2014-02-13 14:54:51 +08:00
@spark 恩 后来我改了超时时间 倒也可以了...
shanks
2014-04-02 14:48:05 +08:00
@zjgsamuel 是用了default-time参数吗?我他喵都改成1000了还不行
zjgsamuel
2014-04-02 16:10:21 +08:00
@shanks 恩 是的我上次就加了 --default-timeout 这个参数 后来就可以装上了 还有一种办法就是翻墙 肯定可以的
shanks
2014-04-02 19:01:51 +08:00
@zjgsamuel 依然不行,加代理也不行。这是在server上啊,FQ有点不方便。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/92729

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX