Wiki source code of How to add libraries to a virtualenv
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | After you have [[created a virtualenv>>doc:Computing Newbies.Python Newbies.How to Create a VirtualEnv.WebHome]], the virtualenv doesn't contain any libraries apart from the basic python ones. | ||
2 | |||
3 | To install a library named X, [[change working directory>>doc:Main.How to Deal with Working Directory in Console.WebHome]] to your virualenv and type: | ||
4 | |||
5 | {{code language="plain"}} | ||
6 | bin/pip install X | ||
7 | {{/code}} | ||
8 | |||
9 | If you are on windows, type this instead: | ||
10 | |||
11 | {{code language="plain"}} | ||
12 | scripts\pip.exe install X | ||
13 | {{/code}} |