[QGIS-Developer] etc/ini/python-core.bat

Jürgen E. Fischer jef at norbit.de
Wed Nov 13 06:48:49 PST 2019


Hi Jacky,

On Wed, 13. Nov 2019 at 14:04:58 +0000, VOLPES-EXT, Jacky wrote:
> I am on Windows, and I guess that the file etc/ini/python-core.bat in the
> installation directory has an invalid content :
 
> SET PYTHONHOME=%OSGEO4W_ROOT%\apps\Python27
> PATH %OSGEO4W_ROOT%\apps\Python27\Scripts;%PATH%

> Since QGIS 3 I have to hand-modify it from Python27 to Python37 on both
> lines, in order to have my Eclipse environment working after the running the
> following batch file : bin\o4w_env.bat

> Obviously, the same for using OSGeo4W Shell which is not correctly configured
> for python3 unless modifying the above file, as it calls bin\o4w_env.bat for
> initialization.

You need to call py3_env.bat - like everything else in OSGeo4W that uses
python3.

python2 is still the default python, although the last bit that was using
python2 - read GRASS - was upgraded to python3 a few days ago.


Jürgen

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191113/af5f2608/attachment.sig>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Pflichtangaben
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191113/af5f2608/attachment.ksh>


More information about the QGIS-Developer mailing list