最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

【已解决】安装discogs-client出错:Error while getting http://pypi.python.org/packages/source/d/discogs-client/discogs-client-1.1.1.tar.gz#md5=c8cdbee394174a02a434c1ce8ff934cb

Python crifan 1126浏览 0评论

【问题】

参考:Discogs API Client,去通过pip去安装discogs_client,结果出错:

D:\tmp\tmp_dev_root\freelance\elance\34295765_music_db\res\discogs-discogs_client-v1.1.1-8-gbfdb1f9\discogs-discogs_client-bfdb1f9>pip install discogs-client
Downloading/unpacking discogs-client
  Cannot fetch index base URL http://pypi.python.org/simple/
  Error <urlopen error timed out> while getting http://pypi.python.org/packages/source/d/discogs-client/discogs-client-1.1.1.tar.gz#md5=c8cdbee394174a02a434c1ce8ff934cb (from http://pypi.python.org/simple/discogs-client/
)
Exception:
Traceback (most recent call last):
  File "D:\tmp\WordPress\DevRoot\Python27\lib\site-packages\pip-1.0-py2.7.egg\pip\basecommand.py", line 126, in main
    self.run(options, args)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\site-packages\pip-1.0-py2.7.egg\pip\commands\install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\site-packages\pip-1.0-py2.7.egg\pip\req.py", line 955, in prepare_files
    self.unpack_url(url, location, self.is_download)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\site-packages\pip-1.0-py2.7.egg\pip\req.py", line 1072, in unpack_url
    return unpack_http_url(link, location, self.download_cache, only_download)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\site-packages\pip-1.0-py2.7.egg\pip\download.py", line 428, in unpack_http_url
    resp = _get_response_from_url(target_url, link)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\site-packages\pip-1.0-py2.7.egg\pip\download.py", line 457, in _get_response_from_url
    resp = urlopen(target_url)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\site-packages\pip-1.0-py2.7.egg\pip\download.py", line 83, in __call__
    response = urllib2.urlopen(self.get_request(url))
  File "D:\tmp\WordPress\DevRoot\Python27\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\urllib2.py", line 394, in open
    response = self._open(req, data)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\urllib2.py", line 412, in _open
    '_open', req)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\urllib2.py", line 1199, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "D:\tmp\WordPress\DevRoot\Python27\lib\urllib2.py", line 1174, in do_open
    raise URLError(err)
URLError: <urlopen error timed out>

Storing complete log in C:\Users\CLi\AppData\Roaming\pip\pip.log

D:\tmp\tmp_dev_root\freelance\elance\34295765_music_db\res\discogs-discogs_client-v1.1.1-8-gbfdb1f9\discogs-discogs_client-bfdb1f9>

 

【解决过程】

1.通过网页查看:

http://pypi.python.org/packages/source/d/

结果只能看到截至

datapkg/ 

再往后的d开头的,就都不能显示出来了。

感觉像是服务器有问题了。

2.后来实在不行,还是手动去用浏览器打开:

http://pypi.python.org/packages/source/d/discogs-client/discogs-client-1.1.1.tar.gz

然后等了一会,终于可以正常下载了,得到discogs-client-1.1.1.tar.gz,解压后,去cmd中运行setup.py install:

D:\tmp\tmp_dev_root\freelance\elance\34295765_music_db\res\discogs-client-1.1.1.tar\dist\discogs-client-1.1.1\discogs-client-1.1.1>setup.py install
running install
running bdist_egg
running egg_info
writing requirements to discogs_client.egg-info\requires.txt
writing discogs_client.egg-info\PKG-INFO
writing top-level names to discogs_client.egg-info\top_level.txt
writing dependency_links to discogs_client.egg-info\dependency_links.txt
reading manifest file 'discogs_client.egg-info\SOURCES.txt'
writing manifest file 'discogs_client.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
copying discogs_client.py -> build\lib
creating build\bdist.win32
creating build\bdist.win32\egg
copying build\lib\discogs_client.py -> build\bdist.win32\egg
byte-compiling build\bdist.win32\egg\discogs_client.py to discogs_client.pyc
creating build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\discogs_client-1.1.1-py2.7.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing discogs_client-1.1.1-py2.7.egg
Copying discogs_client-1.1.1-py2.7.egg to d:\tmp\wordpress\devroot\python27\lib\site-packages
Adding discogs-client 1.1.1 to easy-install.pth file

Installed d:\tmp\wordpress\devroot\python27\lib\site-packages\discogs_client-1.1.1-py2.7.egg
Processing dependencies for discogs-client==1.1.1
Searching for requests
Reading http://pypi.python.org/simple/requests/
Reading http://python-requests.org
Reading https://github.com/kennethreitz/requests
Best match: requests 0.14.1
Downloading http://pypi.python.org/packages/source/r/requests/requests-0.14.1.tar.gz#md5=3de30600072cbc7214ae342d1d08aa46
error: MD5 validation failed for requests-0.14.1.tar.gz; possible download problem?

D:\tmp\tmp_dev_root\freelance\elance\34295765_music_db\res\discogs-client-1.1.1.tar\dist\discogs-client-1.1.1\discogs-client-1.1.1>

其中,在

http://pypi.python.org/simple/requests/

http://python-requests.org

都是等待了半天,结果也还是不能正常连上。

然后也试了通过浏览器,也是无法顺利打开,所以,此处,很明显是python org的问题。

并且在最后,还是无法正常从

http://pypi.python.org/packages/source/r/

去下载requests-0.14.1.tar.gz,

3.尝试手动去通过浏览器下载:

http://pypi.python.org/packages/source/r/requests/requests-0.14.1.tar.gz

看看结果,结果是可以下载的,但是速度极其极其慢。

又另外通过

https://github.com/kennethreitz/requests

直接点击下载,得到了,kennethreitz-requests-v0.14.1-14-g9840966.zip,

解压,去安装:

D:\tmp\dev_tools\python\kennethreitz-requests-v0.14.1-14-g9840966\kennethreitz-requests-9840966>setup.py install
running install
running bdist_egg
running egg_info
creating requests.egg-info
writing requests.egg-info\PKG-INFO
writing top-level names to requests.egg-info\top_level.txt
writing dependency_links to requests.egg-info\dependency_links.txt
writing manifest file 'requests.egg-info\SOURCES.txt'
reading manifest file 'requests.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'tests\*.'
writing manifest file 'requests.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\requests
copying requests\api.py -> build\lib\requests
copying requests\async.py -> build\lib\requests
copying requests\auth.py -> build\lib\requests
copying requests\certs.py -> build\lib\requests
copying requests\compat.py -> build\lib\requests
copying requests\cookies.py -> build\lib\requests
copying requests\defaults.py -> build\lib\requests
copying requests\exceptions.py -> build\lib\requests
copying requests\hooks.py -> build\lib\requests
copying requests\models.py -> build\lib\requests
copying requests\safe_mode.py -> build\lib\requests
copying requests\sessions.py -> build\lib\requests
copying requests\status_codes.py -> build\lib\requests
copying requests\structures.py -> build\lib\requests
copying requests\utils.py -> build\lib\requests
copying requests\_oauth.py -> build\lib\requests
copying requests\__init__.py -> build\lib\requests
creating build\lib\requests\packages
copying requests\packages\__init__.py -> build\lib\requests\packages
creating build\lib\requests\packages\urllib3
copying requests\packages\urllib3\connectionpool.py -> build\lib\requests\packages\urllib3
copying requests\packages\urllib3\exceptions.py -> build\lib\requests\packages\urllib3
copying requests\packages\urllib3\filepost.py -> build\lib\requests\packages\urllib3
copying requests\packages\urllib3\poolmanager.py -> build\lib\requests\packages\urllib3
copying requests\packages\urllib3\request.py -> build\lib\requests\packages\urllib3
copying requests\packages\urllib3\response.py -> build\lib\requests\packages\urllib3
copying requests\packages\urllib3\util.py -> build\lib\requests\packages\urllib3
copying requests\packages\urllib3\_collections.py -> build\lib\requests\packages\urllib3
copying requests\packages\urllib3\__init__.py -> build\lib\requests\packages\urllib3
creating build\lib\requests\packages\urllib3\packages
copying requests\packages\urllib3\packages\ordered_dict.py -> build\lib\requests\packages\urllib3\packages
copying requests\packages\urllib3\packages\six.py -> build\lib\requests\packages\urllib3\packages
copying requests\packages\urllib3\packages\__init__.py -> build\lib\requests\packages\urllib3\packages
creating build\lib\requests\packages\urllib3\packages\ssl_match_hostname
copying requests\packages\urllib3\packages\ssl_match_hostname\__init__.py -> build\lib\requests\packages\urllib3\packages\ssl_match_hostname
creating build\lib\requests\packages\oauthlib
copying requests\packages\oauthlib\common.py -> build\lib\requests\packages\oauthlib
copying requests\packages\oauthlib\__init__.py -> build\lib\requests\packages\oauthlib
creating build\lib\requests\packages\oauthlib\oauth1
copying requests\packages\oauthlib\oauth1\__init__.py -> build\lib\requests\packages\oauthlib\oauth1
creating build\lib\requests\packages\oauthlib\oauth1\rfc5849
copying requests\packages\oauthlib\oauth1\rfc5849\parameters.py -> build\lib\requests\packages\oauthlib\oauth1\rfc5849
copying requests\packages\oauthlib\oauth1\rfc5849\signature.py -> build\lib\requests\packages\oauthlib\oauth1\rfc5849
copying requests\packages\oauthlib\oauth1\rfc5849\utils.py -> build\lib\requests\packages\oauthlib\oauth1\rfc5849
copying requests\packages\oauthlib\oauth1\rfc5849\__init__.py -> build\lib\requests\packages\oauthlib\oauth1\rfc5849
creating build\lib\requests\packages\oauthlib\oauth2
copying requests\packages\oauthlib\oauth2\__init__.py -> build\lib\requests\packages\oauthlib\oauth2
creating build\lib\requests\packages\oauthlib\oauth2\draft25
copying requests\packages\oauthlib\oauth2\draft25\parameters.py -> build\lib\requests\packages\oauthlib\oauth2\draft25
copying requests\packages\oauthlib\oauth2\draft25\tokens.py -> build\lib\requests\packages\oauthlib\oauth2\draft25
copying requests\packages\oauthlib\oauth2\draft25\utils.py -> build\lib\requests\packages\oauthlib\oauth2\draft25
copying requests\packages\oauthlib\oauth2\draft25\__init__.py -> build\lib\requests\packages\oauthlib\oauth2\draft25
creating build\lib\requests\packages\chardet
copying requests\packages\chardet\big5freq.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\big5prober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\chardistribution.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\charsetgroupprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\charsetprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\codingstatemachine.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\constants.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\escprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\escsm.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\eucjpprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\euckrfreq.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\euckrprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\euctwfreq.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\euctwprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\gb2312freq.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\gb2312prober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\hebrewprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\jisfreq.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\jpcntx.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\langbulgarianmodel.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\langcyrillicmodel.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\langgreekmodel.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\langhebrewmodel.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\langhungarianmodel.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\langthaimodel.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\latin1prober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\mbcharsetprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\mbcsgroupprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\mbcssm.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\sbcharsetprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\sbcsgroupprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\sjisprober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\universaldetector.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\utf8prober.py -> build\lib\requests\packages\chardet
copying requests\packages\chardet\__init__.py -> build\lib\requests\packages\chardet
copying requests\cacert.pem -> build\lib\requests
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\requests
copying build\lib\requests\api.py -> build\bdist.win32\egg\requests
copying build\lib\requests\async.py -> build\bdist.win32\egg\requests
copying build\lib\requests\auth.py -> build\bdist.win32\egg\requests
copying build\lib\requests\cacert.pem -> build\bdist.win32\egg\requests
copying build\lib\requests\certs.py -> build\bdist.win32\egg\requests
copying build\lib\requests\compat.py -> build\bdist.win32\egg\requests
copying build\lib\requests\cookies.py -> build\bdist.win32\egg\requests
copying build\lib\requests\defaults.py -> build\bdist.win32\egg\requests
copying build\lib\requests\exceptions.py -> build\bdist.win32\egg\requests
copying build\lib\requests\hooks.py -> build\bdist.win32\egg\requests
copying build\lib\requests\models.py -> build\bdist.win32\egg\requests
creating build\bdist.win32\egg\requests\packages
creating build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\big5freq.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\big5prober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\chardistribution.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\charsetgroupprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\charsetprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\codingstatemachine.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\constants.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\escprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\escsm.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\eucjpprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\euckrfreq.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\euckrprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\euctwfreq.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\euctwprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\gb2312freq.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\gb2312prober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\hebrewprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\jisfreq.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\jpcntx.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\langbulgarianmodel.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\langcyrillicmodel.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\langgreekmodel.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\langhebrewmodel.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\langhungarianmodel.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\langthaimodel.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\latin1prober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\mbcharsetprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\mbcsgroupprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\mbcssm.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\sbcharsetprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\sbcsgroupprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\sjisprober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\universaldetector.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\utf8prober.py -> build\bdist.win32\egg\requests\packages\chardet
copying build\lib\requests\packages\chardet\__init__.py -> build\bdist.win32\egg\requests\packages\chardet
creating build\bdist.win32\egg\requests\packages\oauthlib
copying build\lib\requests\packages\oauthlib\common.py -> build\bdist.win32\egg\requests\packages\oauthlib
creating build\bdist.win32\egg\requests\packages\oauthlib\oauth1
creating build\bdist.win32\egg\requests\packages\oauthlib\oauth1\rfc5849
copying build\lib\requests\packages\oauthlib\oauth1\rfc5849\parameters.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth1\rfc5849
copying build\lib\requests\packages\oauthlib\oauth1\rfc5849\signature.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth1\rfc5849
copying build\lib\requests\packages\oauthlib\oauth1\rfc5849\utils.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth1\rfc5849
copying build\lib\requests\packages\oauthlib\oauth1\rfc5849\__init__.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth1\rfc5849
copying build\lib\requests\packages\oauthlib\oauth1\__init__.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth1
creating build\bdist.win32\egg\requests\packages\oauthlib\oauth2
creating build\bdist.win32\egg\requests\packages\oauthlib\oauth2\draft25
copying build\lib\requests\packages\oauthlib\oauth2\draft25\parameters.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth2\draft25
copying build\lib\requests\packages\oauthlib\oauth2\draft25\tokens.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth2\draft25
copying build\lib\requests\packages\oauthlib\oauth2\draft25\utils.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth2\draft25
copying build\lib\requests\packages\oauthlib\oauth2\draft25\__init__.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth2\draft25
copying build\lib\requests\packages\oauthlib\oauth2\__init__.py -> build\bdist.win32\egg\requests\packages\oauthlib\oauth2
copying build\lib\requests\packages\oauthlib\__init__.py -> build\bdist.win32\egg\requests\packages\oauthlib
creating build\bdist.win32\egg\requests\packages\urllib3
copying build\lib\requests\packages\urllib3\connectionpool.py -> build\bdist.win32\egg\requests\packages\urllib3
copying build\lib\requests\packages\urllib3\exceptions.py -> build\bdist.win32\egg\requests\packages\urllib3
copying build\lib\requests\packages\urllib3\filepost.py -> build\bdist.win32\egg\requests\packages\urllib3
creating build\bdist.win32\egg\requests\packages\urllib3\packages
copying build\lib\requests\packages\urllib3\packages\ordered_dict.py -> build\bdist.win32\egg\requests\packages\urllib3\packages
copying build\lib\requests\packages\urllib3\packages\six.py -> build\bdist.win32\egg\requests\packages\urllib3\packages
creating build\bdist.win32\egg\requests\packages\urllib3\packages\ssl_match_hostname
copying build\lib\requests\packages\urllib3\packages\ssl_match_hostname\__init__.py -> build\bdist.win32\egg\requests\packages\urllib3\packages\ssl_match_
copying build\lib\requests\packages\urllib3\packages\__init__.py -> build\bdist.win32\egg\requests\packages\urllib3\packages
copying build\lib\requests\packages\urllib3\poolmanager.py -> build\bdist.win32\egg\requests\packages\urllib3
copying build\lib\requests\packages\urllib3\request.py -> build\bdist.win32\egg\requests\packages\urllib3
copying build\lib\requests\packages\urllib3\response.py -> build\bdist.win32\egg\requests\packages\urllib3
copying build\lib\requests\packages\urllib3\util.py -> build\bdist.win32\egg\requests\packages\urllib3
copying build\lib\requests\packages\urllib3\_collections.py -> build\bdist.win32\egg\requests\packages\urllib3
copying build\lib\requests\packages\urllib3\__init__.py -> build\bdist.win32\egg\requests\packages\urllib3
copying build\lib\requests\packages\__init__.py -> build\bdist.win32\egg\requests\packages
copying build\lib\requests\safe_mode.py -> build\bdist.win32\egg\requests
copying build\lib\requests\sessions.py -> build\bdist.win32\egg\requests
copying build\lib\requests\status_codes.py -> build\bdist.win32\egg\requests
copying build\lib\requests\structures.py -> build\bdist.win32\egg\requests
copying build\lib\requests\utils.py -> build\bdist.win32\egg\requests
copying build\lib\requests\_oauth.py -> build\bdist.win32\egg\requests
copying build\lib\requests\__init__.py -> build\bdist.win32\egg\requests
byte-compiling build\bdist.win32\egg\requests\api.py to api.pyc
byte-compiling build\bdist.win32\egg\requests\async.py to async.pyc
byte-compiling build\bdist.win32\egg\requests\auth.py to auth.pyc
byte-compiling build\bdist.win32\egg\requests\certs.py to certs.pyc
byte-compiling build\bdist.win32\egg\requests\compat.py to compat.pyc
byte-compiling build\bdist.win32\egg\requests\cookies.py to cookies.pyc
byte-compiling build\bdist.win32\egg\requests\defaults.py to defaults.pyc
byte-compiling build\bdist.win32\egg\requests\exceptions.py to exceptions.pyc
byte-compiling build\bdist.win32\egg\requests\hooks.py to hooks.pyc
byte-compiling build\bdist.win32\egg\requests\models.py to models.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\big5freq.py to big5freq.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\big5prober.py to big5prober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\chardistribution.py to chardistribution.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\charsetgroupprober.py to charsetgroupprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\charsetprober.py to charsetprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\codingstatemachine.py to codingstatemachine.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\constants.py to constants.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\escprober.py to escprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\escsm.py to escsm.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\eucjpprober.py to eucjpprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\euckrfreq.py to euckrfreq.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\euckrprober.py to euckrprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\euctwfreq.py to euctwfreq.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\euctwprober.py to euctwprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\gb2312freq.py to gb2312freq.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\gb2312prober.py to gb2312prober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\hebrewprober.py to hebrewprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\jisfreq.py to jisfreq.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\jpcntx.py to jpcntx.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\langbulgarianmodel.py to langbulgarianmodel.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\langcyrillicmodel.py to langcyrillicmodel.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\langgreekmodel.py to langgreekmodel.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\langhebrewmodel.py to langhebrewmodel.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\langhungarianmodel.py to langhungarianmodel.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\langthaimodel.py to langthaimodel.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\latin1prober.py to latin1prober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\mbcharsetprober.py to mbcharsetprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\mbcsgroupprober.py to mbcsgroupprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\mbcssm.py to mbcssm.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\sbcharsetprober.py to sbcharsetprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\sbcsgroupprober.py to sbcsgroupprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\sjisprober.py to sjisprober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\universaldetector.py to universaldetector.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\utf8prober.py to utf8prober.pyc
byte-compiling build\bdist.win32\egg\requests\packages\chardet\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\common.py to common.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth1\rfc5849\parameters.py to parameters.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth1\rfc5849\signature.py to signature.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth1\rfc5849\utils.py to utils.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth1\rfc5849\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth1\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth2\draft25\parameters.py to parameters.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth2\draft25\tokens.py to tokens.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth2\draft25\utils.py to utils.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth2\draft25\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\oauth2\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\packages\oauthlib\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\connectionpool.py to connectionpool.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\exceptions.py to exceptions.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\filepost.py to filepost.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\packages\ordered_dict.py to ordered_dict.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\packages\six.py to six.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\packages\ssl_match_hostname\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\packages\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\poolmanager.py to poolmanager.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\request.py to request.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\response.py to response.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\util.py to util.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\_collections.py to _collections.pyc
byte-compiling build\bdist.win32\egg\requests\packages\urllib3\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\packages\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\requests\safe_mode.py to safe_mode.pyc
byte-compiling build\bdist.win32\egg\requests\sessions.py to sessions.pyc
byte-compiling build\bdist.win32\egg\requests\status_codes.py to status_codes.pyc
byte-compiling build\bdist.win32\egg\requests\structures.py to structures.pyc
byte-compiling build\bdist.win32\egg\requests\utils.py to utils.pyc
byte-compiling build\bdist.win32\egg\requests\_oauth.py to _oauth.pyc
byte-compiling build\bdist.win32\egg\requests\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying requests.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying requests.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying requests.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying requests.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
requests.certs: module references __file__
requests._oauth: module references __file__
creating dist
creating 'dist\requests-0.14.1-py2.7.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing requests-0.14.1-py2.7.egg
creating d:\tmp\wordpress\devroot\python27\lib\site-packages\requests-0.14.1-py2.7.egg
Extracting requests-0.14.1-py2.7.egg to d:\tmp\wordpress\devroot\python27\lib\site-packages
Adding requests 0.14.1 to easy-install.pth file

Installed d:\tmp\wordpress\devroot\python27\lib\site-packages\requests-0.14.1-py2.7.egg
Processing dependencies for requests==0.14.1
Finished processing dependencies for requests==0.14.1

D:\tmp\dev_tools\python\kennethreitz-requests-v0.14.1-14-g9840966\kennethreitz-requests-9840966>

则是可以正常安装request的。

接着再回去重试安装discogs-client,好像就可以正常安装了:

D:\tmp\tmp_dev_root\freelance\elance\34295765_music_db\res\discogs-client-1.1.1.tar\dist\discogs-client-1.1.1\discogs-client-1.1.1>setup.py install
running install
running bdist_egg
running egg_info
writing requirements to discogs_client.egg-info\requires.txt
writing discogs_client.egg-info\PKG-INFO
writing top-level names to discogs_client.egg-info\top_level.txt
writing dependency_links to discogs_client.egg-info\dependency_links.txt
reading manifest file 'discogs_client.egg-info\SOURCES.txt'
writing manifest file 'discogs_client.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build\bdist.win32\egg
copying build\lib\discogs_client.py -> build\bdist.win32\egg
byte-compiling build\bdist.win32\egg\discogs_client.py to discogs_client.pyc
creating build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
copying discogs_client.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\discogs_client-1.1.1-py2.7.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing discogs_client-1.1.1-py2.7.egg
Removing d:\tmp\wordpress\devroot\python27\lib\site-packages\discogs_client-1.1.1-py2.7.egg
Copying discogs_client-1.1.1-py2.7.egg to d:\tmp\wordpress\devroot\python27\lib\site-packages
discogs-client 1.1.1 is already the active version in easy-install.pth

Installed d:\tmp\wordpress\devroot\python27\lib\site-packages\discogs_client-1.1.1-py2.7.egg
Processing dependencies for discogs-client==1.1.1
Searching for requests==0.14.1
Best match: requests 0.14.1
Processing requests-0.14.1-py2.7.egg
requests 0.14.1 is already the active version in easy-install.pth

Using d:\tmp\wordpress\devroot\python27\lib\site-packages\requests-0.14.1-py2.7.egg
Finished processing dependencies for discogs-client==1.1.1

D:\tmp\tmp_dev_root\freelance\elance\34295765_music_db\res\discogs-client-1.1.1.tar\dist\discogs-client-1.1.1\discogs-client-1.1.1>

 

【总结】

貌似此刻,python org有问题,导致无法顺利连接啊。

搞得想要安装discogs-client,只能手动去下载各个依赖包,最后才顺利安装discogs-client的。

转载请注明:在路上 » 【已解决】安装discogs-client出错:Error while getting http://pypi.python.org/packages/source/d/discogs-client/discogs-client-1.1.1.tar.gz#md5=c8cdbee394174a02a434c1ce8ff934cb

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
58 queries in 0.104 seconds, using 18.91MB memory