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>>url:https://wiki.codepowered.com/wiki/How_to_Create_a_VirtualEnv]], the virtualenv doesn't contain any libraries apart from the basic python ones. | ||
| 2 | |||
| 3 | To install a library named X, [[change working directory>>url:https://wiki.codepowered.com/wiki/How_to_Deal_with_Working_Directory_in_Console]] to your virualenv and type: | ||
| 4 | |||
| 5 | {{{bin/pip install X | ||
| 6 | }}} | ||
| 7 | |||
| 8 | If you are on windows, type this instead: | ||
| 9 | |||
| 10 | {{{scripts\pip.exe install X | ||
| 11 | }}} |