Wiki source code of How to add libraries to a virtualenv
Hide last authors
author | version | line-number | content |
---|---|---|---|
3.1 | 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. | |
1.1 | 2 | ||
2.1 | 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: | |
1.1 | 4 | ||
2.1 | 5 | {{code language="plain"}} | |
6 | bin/pip install X | ||
7 | {{/code}} | ||
1.1 | 8 | ||
9 | If you are on windows, type this instead: | ||
10 | |||
2.1 | 11 | {{code language="plain"}} | |
12 | scripts\pip.exe install X | ||
13 | {{/code}} |