I use pyqgis to create standalone GIS apps.

In my system I have only pythonpath from QGIS C:\OSGeo4W64\bin\python.exe I don't have any other python version. in my installation folder I have a C:\OSGeo4W64\apps\Python27 and C:\OSGeo4W64\apps\Python27\Lib\site-packages folders.

can I install packages in this folders using pip ?

for example If I have install standard python and from cmd use pip then I can easy packages on this folder C:\Python27.

  • It's not easy answering. Try to install your packages and if there is an error, describe it. Then it might be easier. If you run sys.path in QGIS python console you get the path were QGIS is linked to python – DirkB. Jul 3 '17 at 4:36

Nathan has a write-up on how to install python packages for the default version of Python with QGIS, however, it involves using the OSGeo4W shell.

According to him, you must first download and install easy_install which you vcan then use to install pip, if you want to use pip. Further, it seems that the default package save path is C:\OSGeo4W\apps\Python27\Scripts which seems to match your filepath.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.