一:python下setuptools安装( No module named setuptools 解决方案)python
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 installcurl
二:Could not find suitable distribution for Requirement.parse('meld3>=1.0.0')ui
解决办法:
上网查询了问题缘由: 是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 url