pip-10.0.1

durongze@du-pc:~/code/pip-10.0.1$ sudo python  setup.py install
Traceback (most recent call last):
  File "setup.py", line 6, in <module>
    from setuptools import setup, find_packages
ImportError: No module named setuptools
durongze@du-pc:~/code/pip-10.0.1$ wget http://peak.telecommunity.com/dist/ez_setup.py
--2018-05-17 11:59:27--  http://peak.telecommunity.com/dist/ez_setup.py
正在解析主机 peak.telecommunity.com (peak.telecommunity.com)... 209.190.5.234
正在连接 peak.telecommunity.com (peak.telecommunity.com)|209.190.5.234|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 10240 (10K) [text/plain]
正在保存至: “ez_setup.py”

ez_setup.py                       100%[============================================================>]  10.00K  4.23KB/s    用时 2.4s  

2018-05-17 11:59:34 (4.23 KB/s) - 已保存 “ez_setup.py” [10240/10240])

durongze@du-pc:~/code/pip-10.0.1$ python ez_setup.py
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Traceback (most recent call last):
  File "ez_setup.py", line 278, in <module>
    main(sys.argv[1:])
  File "ez_setup.py", line 210, in main
    egg = download_setuptools(version, delay=0)
  File "ez_setup.py", line 158, in download_setuptools
    src = urllib2.urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

urllib2.HTTPError: HTTP Error 403: SSL is required

durongze@du-pc:~/code/pip-10.0.1$ sudo apt-get install python-setuptools
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:


阅读更多
个人分类: PYTHON
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭