Python开发环境搭建

2018-02-02  本文已影响10人  木头与琉璃

IDE安装和激活

.virtualenv的安装

sudo pip install virtualenv
sudo easy_install virtualenvwrapper 

virtualenvwrapper.sh脚本路径: /usr/local/bin/virtualenvwrapper.sh

# Setup:
#
#  1. Create a directory to hold the virtual environments.
#     (mkdir $HOME/.virtualenvs).
#  2. Add a line like "export WORKON_HOME=$HOME/.virtualenvs"
#     to your .bashrc.
#  3. Add a line like "source /path/to/this/file/virtualenvwrapper.sh"
#     to your .bashrc.
#  4. Run: source ~/.bashrc
#  5. Run: workon
#  6. A list of environments, empty, is printed.
#  7. Run: mkvirtualenv temp
#  8. Run: workon
#  9. This time, the "temp" environment is included.
# 10. Run: workon temp
# 11. The virtual environment is activated.
#
上一篇 下一篇

猜你喜欢

热点阅读