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

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).

主站蜘蛛池模板: 惠州市| 额尔古纳市| 琼结县| 福建省| 上思县| 惠州市| 浦北县| 临猗县| 辽阳县| 南涧| 台中县| 曲松县| 南部县| 德兴市| 平湖市| 丹东市| 雷波县| 瑞昌市| 昔阳县| 呈贡县| 东光县| 虞城县| 上犹县| 天全县| 闻喜县| 南通市| 中方县| 孟连| 行唐县| 浏阳市| 屏山县| 尼玛县| 阿瓦提县| 女性| 西贡区| 洛浦县| 陇川县| 定安县| 宜君县| 资阳市| 济源市|