#PIP更新

pip install xxxx安装第三方库时报错
upload successful

1
2
You are using pip version 9.0.1, however version 9.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

按照提示输入pip install --upgrade pip 仍然提示错误
upload successful

最后以管理员权限输入更新命令sudo pip install --upgrade pip成功更新
upload successful

#easy_install安装

然而如threading``re等库的安装依旧报错
upload successful
于是尝试用easy_install安装
首先命令行输入代码

1
curl https://bootstrap.pypa.io/ez_setup.py -o - | python

将下载下来的setuptools-18.5.zip解压,此时即正确配置了easy_install了
安装命令easy_install xxxx

#wget的安装

然而依旧存在问题…
upload successful
在此之前我们需要安装wget
以下推荐一个安装教程 有不同的安装方法
https://www.cyberciti.biz/faq/howto-install-wget-om-mac-os-x-mountain-lion-mavericks-snow-leopard/

1
2
3
4
5
6
7
8
curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
tar xzvf wget-1.13.4.tar.gz
cd wget-1.13.4
./configure --with-ssl=openssl
sudo make
sudo make install
which wget #Should output: /usr/local/bin/wge

在sudo make的时候出现提示:
upload successful
输入./configure --with-ssl=openssl配置wget
upload successful
根据提示 安装openssl
yum -y install openssl
…以上尝试最终以失败告终

#通过Homebrew安装wget

1
2
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install wget

#最终问题解决

…这个是自带库
upload successful