Skip to content

Instantly share code, notes, and snippets.

@xgz123
Last active August 14, 2016 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xgz123/245fc730686347ccebf7afa5965d6e07 to your computer and use it in GitHub Desktop.
Save xgz123/245fc730686347ccebf7afa5965d6e07 to your computer and use it in GitHub Desktop.
# 安装pip
python get-pip.py
# where is site package
# sudo apt-get install 安装的package存放在 /usr/lib/python2.7/dist-packages目录中
# pip 或者 easy_install安装的package存放在/usr/local/lib/python2.7/dist-packages目录中
import site; site.getsitepackages()
# virtualenv
virtualenv ENV
source ENV/bin/activate
# 现在安装的包都会在这个环境下
pip install ***
# 包在 /lib/python2.7/site-packages
# 安装完后,这里应该有所需要的包
# sphinx - rst
make html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment