Django for Designers/Laptop setup/Linux virtualenv: Difference between revisions

From OpenHatch wiki
imported>Paulproteus
No edit summary
imported>Paulproteus
No edit summary
Line 1: Line 1:
  +
== Test if you have the required tools ==
{{:Django for Designers/Laptop setup/OSX virtualenv}}
 
  +
  +
In this step, we test if you have the ''virtualenv'' tool.
  +
  +
Take this moment to open up a command prompt. Enter the command:
  +
  +
<pre>
  +
virtualenv --help
  +
</pre>
  +
  +
You should see a help message that looks something like this:
  +
  +
<pre>
  +
Usage: virtualenv [OPTIONS] DEST_DIR
  +
  +
Options:
  +
--version show program's version number and exit
  +
</pre>
  +
  +
If you don't see that friendly message, download ''virtualenv.py'' from here:
  +
  +
* [https://raw.github.com/pypa/virtualenv/master/virtualenv.py virtualenv.py]
  +
  +
and save it inside the ''pages-to-apps'' folder.
  +
  +
Also, if you use Ubuntu or Debian, run the following command:
  +
  +
<pre>sudo apt-get install python-dev</pre>
  +
  +
It installs development-related tools that virtualenv relies on.

Revision as of 05:24, 24 February 2013

Test if you have the required tools

In this step, we test if you have the virtualenv tool.

Take this moment to open up a command prompt. Enter the command:

virtualenv --help

You should see a help message that looks something like this:

Usage: virtualenv [OPTIONS] DEST_DIR

Options:
  --version             show program's version number and exit

If you don't see that friendly message, download virtualenv.py from here:

and save it inside the pages-to-apps folder.

Also, if you use Ubuntu or Debian, run the following command:

sudo apt-get install python-dev

It installs development-related tools that virtualenv relies on.