官术网_书友最值得收藏!

Prerequisites and tools

First, let's make sure our environment is properly configured. For this course, I assume you are using a Debian-like Linux distribution, such as Mint (http://www.linuxmint.com/) or Ubuntu (http://ubuntu.com/). All the instructions will be geared towards these systems.

Let's begin by installing the required Debian packages with apt-get as follows:

sudo apt-get install python-dev python-pip

This will install the Python development tools and libraries required for compiling Python packages, and pip: a neat tool you can use to install Python packages from the command line. On with it! Let's install our virtual environment managing tool:

sudo pip install virtualenvwrapper
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc

To explain what we just did: sudo tells our OS that we want administrative privileges to run the next command, and pip is the default Python package management tool and helps us install the virtualenvwrapper package. The second command statement adds a command to load the virtualenvwrapper.sh script together with the console, so that commands work inside your shell (we'll be using it, by the way).

主站蜘蛛池模板: 吴川市| 米泉市| 潜山县| 大名县| 安达市| 乌拉特前旗| 英吉沙县| 潞西市| 勐海县| 定结县| 巫溪县| 泰州市| 乌苏市| 湖北省| 沭阳县| 新乡市| 读书| 百色市| 稷山县| 田东县| 古交市| 乡城县| 五大连池市| 鲁甸县| 哈巴河县| 嘉定区| 阳朔县| 临漳县| 连江县| 江北区| 石首市| 清远市| 施甸县| 乐山市| 都兰县| 贡山| 镶黄旗| 延吉市| 齐河县| 东山县| 聊城市|