While there are tools and methods for QGIS 2 I cannot figure out for 3
I want to install external Python packages such as sqlalchemy
etc.
I tried the following things :
-
Tried to download osgeo4w for QGIS 3.02 as of now there is no advance installation option like it use to be before http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe.
-
Tried to install
setuptools
but its not working in the 2nd step. it
returns 1.
https://www.lutraconsulting.co.uk/blog/2016/03/02/installing-third-party-python-modules-in-qgis-windows/ -
Went to Python of the
C:\Program Files\QGIS 3.0\bin
and triedpip
but it does not work.
Best Answer
I encounter that problem after installing QGIS 3, too. Therefore, I install Python packages in following way:
python3.dll
andpython36.dll
in(QGIS_PATH)/bin
folder to(QGIS_PATH)/apps/Python36/
folder.Python36
folder.cd c:/(QGIS_PATH)/apps/Python36
python -m pip install package_name
.I use that way, because I couldn't install packages using OSGeo Shell. When I try in OSGeo Shell, Python crashes.
EDIT: This was one solution that I was using. But OSGeo4W shell with python3 post as @Luke states in comment has exact solution.