源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

python下setuptools的安装详解及No module named setuptools的解决方法

  • 时间:2020-01-21 06:21 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:python下setuptools的安装详解及No module named setuptools的解决方法
[b]前言[/b] python下的setuptools带有一个easy_install的工具,在安装python的每三方模块、工具时很有用,也很方便。 安装setuptools前先安装pip,请参考:[url=http://www.1sucai.cn/article/118035.htm]linux下pip的安装步骤及使用详解[/url] [b]1. 下载:[/b] 在它的官网可以下载到安装包: [url=https://pypi.python.org/pypi/setuptools]https://pypi.python.org/pypi/setuptools[/url] 页面最下面的是它的安装链接,如:
$wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-12.0.3.tar.gz#md5=f07e4b0f4c1c9368fcd980d888b29a65 
[b]2. 安装[/b]
$ tar -zxvf setuptools-12.0.3.tar.gz
$ cd setuptools=12.0.3
$ python setup.py install
[b]3. 出现错误提示:[/b]
Installed /usr/local/python2.7.3/lib/python2.7/site-packages/supervisor-4.0.0_dev-py2.7.egg
Processing dependencies for supervisor==4.0.0-dev
Searching for meld3>=1.0.0
Reading https://pypi.python.org/simple/meld3/
Download error on https://pypi.python.org/simple/meld3/: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed -- Some packages may not be found!
Couldn't find index page for 'meld3' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed -- Some packages may not be found!
No local packages or download links found for meld3>=1.0.0
error: Could not find suitable distribution for Requirement.parse('meld3>=1.0.0')
[b]解决办法:[/b] 上网查询了问题原因: 是curl的证书太老了需要下载最新的证书: 下载最新的证书文件
$ wget http://curl.haxx.se/ca/cacert.pem 
更名为ca-bundle.crt放置到默认目录 
$ mv cacert.pem ca-bundle.crt 
$ mv ca-bundle.crt /etc/pki/tls/certs 
[b]总结[/b] 以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流,谢谢大家对编程素材网的支持。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部