g-sherman / plugin_build_tool

Python command line tool for compiling and deploying QGIS plugins
GNU General Public License v2.0
38 stars 18 forks source link

pb_tool for QGIS 2.x #10

Closed dortegat closed 5 years ago

dortegat commented 5 years ago

I try to install pb_tool for version 2.18.22 of QGIS (version of Python 2.7.14) by running: python -m pip install pb_tool

The installation is not completed:

" Found existing installation: Pygments 1.6 Cannot uninstall 'Pygments'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall."

Any ideas?

The development environment has been configured in the following way:

@echo off
SET QGIS_ROOT=C:\Program Files\QGIS 2.18
call "%QGIS_ROOT%"\bin\o4w_env.bat

@echo off
SET QGISNAME=qgis-ltr
path %PATH%;%QGIS_ROOT%\apps\%QGISNAME%\bin
path %PATH%;%QGIS_ROOT%\bin
path %PATH%;%QGIS_ROOT%\apps\Python27\Scripts

set PYTHONPATH=%PYTHONPATH%;%QGIS_ROOT%\apps\%QGISNAME%\python
set PYTHONHOME=%QGIS_ROOT%\apps\Python27

cmd.exe
g-sherman commented 5 years ago

Try: python -m pip install --ignore-installed Pygments