| 4 | |
| 5 | Important note: it's up to you to ensure the 3rd party packages can play nice with osgeo4w. If things get too messed up because of conflicting versions or something you may need to remove everything and install from scratch. |
| 6 | |
| 7 | == pip == |
| 8 | ''[http://www.pip-installer.org/ pip]'' is a tool for installing and managing Python packages, such as those found in the [http://pypi.python.org/pypi Python Package Index]. It’s a replacement for `easy_install`. |
| 9 | |
| 10 | If you don't have it already, install [wiki:pkg-curl], then from the Osgeo4w shell: |
| 11 | |
| 12 | Install the `distribute` prerequisite and then `pip`: |
| 13 | {{{ |
| 14 | curl http://python-distribute.org/distribute_setup.py | python |
| 15 | curl --insecure https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python |
| 16 | |
| 17 | rem Create a batch file to run pip: |
| 18 | copy con %osgeo4w_root%\bin\pip.bat |
| 19 | %pythonhome%\Scripts\pip.exe %*[ctrl-Z] |
| 20 | }}} |
| 21 | (recipe adapted from [http://www.pip-installer.org/en/latest/installing.html pip install instructions]) |
| 22 | |
| 23 | Now you can install (or remove) what you're really after: |
| 24 | {{{ |
| 25 | rem ipython - Productive Interactive Computing, a great python shell |
| 26 | pip install ipython |
| 27 | pip uninstall foobar |
| 28 | }}} |
| 29 | See [http://www.pip-installer.org/en/latest/usage.html usage] for more possibilities, like installing from a source code repository. |
| 30 | |
| 31 | It's a good idea to run from a temp or scratch directory because a failed build will leave files behind (and a great many of the packages fail). |
| 32 | |
| 33 | |
| 34 | |