python 安装 pip

一、环境

  1. centos 6.x mini
  2. python 2.7.5

二、下载&&安装

  1. wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.5.tar.gz
  2. wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz
  3. tar zxf setuptools-1.1.5.tar.gz
  4. tar zxf pip-1.4.1.tar.gz
  5. cd setupxxx && python setup.py install
  6. cd pipxxx && python setup.py install
  7. done

三、虚拟环境

  1. pip install virtualenv
  2. virtualenv demo
  3. cd demo
  4. source bin/activate
  5. deactivate
  6. rmvirtualenv demo


你可能感兴趣的:(python,pip,virtualenv)