博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python下setuptools安装( No module named setuptools 解决方案)
阅读量:4172 次
发布时间:2019-05-26

本文共 1503 字,大约阅读时间需要 5 分钟。

python下的setuptools带有一个easy_install的工具,

在安装python的每三方模块、工具时很有用,也很方便。

安装setuptools前先安装pip,请参考:


1. 下载:

在它的官网可以下载到安装包:

https://pypi.python.org/pypi/setuptools


页面最下面的是它的安装链接,如:

$
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-12.0.3.tar.gz#md5=f07e4b0f4c1c9368fcd980d888b29a65 


2. 安装

$ tar -zxvf setuptools-12.0.3.tar.gz
$ cd setuptools=12.0.3
$ python setup.py install


3. 出现错误提示:

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')


解决办法:

上网查询了问题原因: 是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 

原文链接:

转载地址:http://lvyai.baihongyu.com/

你可能感兴趣的文章
【EVB-335X-II试用体验】 Yocto环境的建立及Rootfs的构建与使用
查看>>
<<C++程序设计原理与实践>>粗读--chapter0 chapter1 chapter2
查看>>
<<C++程序设计原理与实践>>粗读--chapter3 chapter4 Chapter5
查看>>
<<C++程序设计原理与实践>>粗读 -- chapter8 Chapter9
查看>>
Linux Qt程序打包成一个可执行文件
查看>>
DragonBoard 410C中的Fastboot与调试串口注意事项
查看>>
跨系统的录音格式兼容性问题: iOS Android
查看>>
JVM 的垃圾回收器
查看>>
Mybatis的缓存
查看>>
@validated注解异常返回JSON值
查看>>
@JsonFormat注解使用
查看>>
Spring boot集成jxls实现导入功能
查看>>
Spring boot读取配置的方式(指定配置文件)
查看>>
Spring Boot切换不同环境配置
查看>>
Spring cloud之Ribbon搭建
查看>>
TreeMap 与 HashMap 的区别
查看>>
初识CAS
查看>>
Fork/Join 框架
查看>>
服务雪崩效应
查看>>
策略模式实例
查看>>