V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
zjgsamuel
V2EX  ›  Python

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

  •  
  •   zjgsamuel ·
    zjgsamuel · 2013-12-11 16:31:07 +08:00 · 5564 次点击
    这是一个创建于 4000 天前的主题,其中的信息可能已经有所发展或是发生改变。
    干净的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 啥的我也都装好了呀,很是奇怪
    14 条回复    1970-01-01 08:00:00 +08:00
    ufo22940268
        1
    ufo22940268  
       2013-12-11 19:52:48 +08:00
    要不翻个墙试试?
    sfdye
        2
    sfdye  
       2013-12-12 08:20:15 +08:00
    直接下载zip包 sudo python setup.py install
    too
        3
    too  
       2013-12-12 09:48:38 +08:00
    可以试试用国内的 pypi 镜像,比如豆瓣的
    zjgsamuel
        4
    zjgsamuel  
    OP
       2013-12-12 13:11:05 +08:00
    @sfdye 我回头试试这个办法 谢拉
    @too 恩 国内的源都换了个遍了 一直是这个问题 准备收工装了
    zjgsamuel
        5
    zjgsamuel  
    OP
       2013-12-12 13:38:55 +08:00
    @sfdye 晕了 直接安装也提示 ssl.SSLError: The read operation timed out 难道真的要研究一下ubuntu server 怎么翻墙 还是就 virtualenv 用用得了..
    sfdye
        6
    sfdye  
       2013-12-12 13:43:30 +08:00
    @zjgsamuel 就用virtualenv吧
    sitin
        7
    sitin  
       2013-12-12 20:34:05 +08:00
    之前在air上也死活装不上,想想,就多一个步骤,觉得折腾这点时间早都进去了。
    melaozhu
        8
    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
        9
    zjgsamuel  
    OP
       2013-12-23 20:21:19 +08:00
    @melaozhu 我之前在装的时候也设置过超时的等待时间 可能是设置的不对 现在可以安装了 万分感谢哈~~
    spark
        10
    spark  
       2014-02-12 13:13:03 +08:00
    @zjgsamuel 我今天遇到这个问题了, 确定就是墙的问题, 翻吧
    zjgsamuel
        11
    zjgsamuel  
    OP
       2014-02-13 14:54:51 +08:00
    @spark 恩 后来我改了超时时间 倒也可以了...
    shanks
        12
    shanks  
       2014-04-02 14:48:05 +08:00
    @zjgsamuel 是用了default-time参数吗?我他喵都改成1000了还不行
    zjgsamuel
        13
    zjgsamuel  
    OP
       2014-04-02 16:10:21 +08:00
    @shanks 恩 是的我上次就加了 --default-timeout 这个参数 后来就可以装上了 还有一种办法就是翻墙 肯定可以的
    shanks
        14
    shanks  
       2014-04-02 19:01:51 +08:00
    @zjgsamuel 依然不行,加代理也不行。这是在server上啊,FQ有点不方便。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2670 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 03:27 · PVG 11:27 · LAX 19:27 · JFK 22:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.