Changes between Version 5 and Version 6 of ExternalPythonPackages
- Timestamp:
- 11/02/15 10:49:40 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExternalPythonPackages
v5 v6 5 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 6 7 == Install withpip ==7 == Install pip == 8 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 9 10 10 If you don't have it already, install [wiki:pkg-curl], then from the Osgeo4w shell: 11 11 12 Install the `distribute` prerequisite and then `pip`:12 Securely download `get-pip` install script: 13 13 {{{ 14 curl http://python-distribute.org/distribute_setup.py | python 15 curl --insecure https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | python 14 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py 16 15 }}} 17 16 18 Create a batch file to run pip: 17 If you get ''"error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"'' see #474. 18 19 Install pip: 19 20 {{{ 20 copy con %osgeo4w_root%\bin\pip.bat 21 %pythonhome%\Scripts\pip.exe %*[ctrl-Z] 21 python get-pip.py 22 22 }}} 23 23 24 (recipe adapted from [http://www.pip-installer.org/en/latest/installing.html pip install instructions]) 25 26 === Install 3rd party program or module === 24 27 25 28 Now you can install (or remove) what you're really after … … 32 35 33 36 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). 34 35 36 37 == Use standard Windows installers == 37 38 If you make Osgeo4W python the system default, you can use the usual windows installers (foobar-setup.exe, .msi). Details for how to do that are at ticket:114, an experimental python program to add and remove o4w python from the Windows registry.