1,简介
1)pip是一个Python包管理工具,用于安装PyPI 中的python库。
2) pip --version python -V
2,安装python和pip
python
wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
yum install openssl openssl-devel zlib-devel gcc -y
mkdir -p /usr/local/python2.7.11
./configure --prefix=/usr/local/python2.7.11
make & make install
mv /usr/bin/python /usr/bin/python26
ln -s /usr/local/python2.7.11/bin/python2.7 /usr/bin/python
python -V
pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
mv /usr/bin/pip /usr/bin/pipbk
ln -s /usr/local/python2.7.11/bin/pip2.7 /usr/bin/pip
网友评论