Download files from here:

https://www.dropbox.com/sh/bcbwn4junux1e71/AADNp9KyDvBWamIQgparSIKla?dl=0

py3-env.bat

@ECHO OFF 

set "OSGEO4W_ROOT=%~1"
echo %OSGEO4W_ROOT%

set PATH=%OSGEO4W_ROOT%\bin;%PATH%
set PATH=%PATH%;%OSGEO4W_ROOT%\apps\qgis\bin

@echo off
call "%OSGEO4W_ROOT%\bin\o4w_env.bat"
call "%OSGEO4W_ROOT%\bin\qt5_env.bat"
call "%OSGEO4W_ROOT%\bin\py3_env.bat"
@echo off
path %OSGEO4W_ROOT%\apps\qgis\bin;%PATH%

cd /d %~dp0

::start cmd

pythonmodules.txt

pandas
geopandas
pysal

or

pandas
geopandas
C:\Users\mkiria01\Desktop\Fiona-1.8.4-cp37-cp37m-win_amd64.whl
pysal

pip_install_packages.bat

@echo off
set "input=C:\Program Files\QGIS 3.4"
echo %input%

@echo ON

cd /d %~dp0

call py3-env.bat "%input%"

python3 -m pip install --upgrade pip
python3 -m pip install -r pythonmodules.txt

or without file pythonmodules.txt

@echo off
set "input=C:\Program Files\QGIS 3.4"
echo %input%

@echo ON

cd /d %~dp0

call py3-env.bat "%input%"

python3 -m pip install --upgrade pip
python3 -m pip install pandas
python3 -m pip install geopandas
python3 -m pip install pysal


QGIS 2

pip_install_packages2.bat

@echo off
set "input=C:\Program Files\QGIS 2.18"
echo %input%

@echo ON

cd /d %~dp0

call py3-env.bat "%input%"

python -m pip install --upgrade pip
python -m pip install numpy


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: