干净的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 啥的我也都装好了呀,很是奇怪