Python programming, with examples in hydraulic engineering and in hydrology.
Showing posts with label OSGeo4W. Show all posts
Showing posts with label OSGeo4W. Show all posts
Wednesday, November 4, 2015
How to Install New Python Modules / Packages in QGIS - method #1
Steps:
1 - copy source folder to C:\Program Files\QGIS Wien\apps\Python27\Lib\site-packages
2 - Open OSGeo4W Shell; go to unpacked folder, where setup.py lies - (>> cd "C:\Program Files\QGIS Wien\apps\Python27\Lib\site-packages")
3 - Type: >> python setup.py install
-----
If it shows errors regarding setuptools: you will have to install setuptools.
https://pypi.python.org/packages/source/s/setuptools/setuptools-18.4.zip#md5=38d5cd321ca9de2cdb1dafcac4cb7007
Download setuptools package, then repeat the same steps for installation.
Ps: in my opinion, this is the worst method to install modules. Next post I will tell how to use "pip" with QGIS Python.
Subscribe to:
Posts (Atom)