[Osgeo4w-trac] [osgeo4w] #692: Python 3.9 on v2 installer breaks part of stdlib

OSGeo4W trac_osgeo4w at osgeo.org
Tue Mar 14 05:26:50 PDT 2023


#692: Python 3.9 on v2 installer breaks part of stdlib
-----------------------+----------------------------
Reporter:  akominlsfi  |       Owner:  osgeo4w-dev@…
    Type:  defect      |      Status:  new
Priority:  major       |   Component:  Installer
 Version:              |  Resolution:
Keywords:              |
-----------------------+----------------------------
Comment (by Andreas Müller):

 I created the file sitecustomize.py with this code:

 {{{
 import os
 for p in os.getenv("PATH").split(";"):
     if os.path.exists(p):
         os.add_dll_directory(p)
 }}}

 and it seems to fix issues I had with an IDE I use (PyScripter using
 PyQt5) plus using pip in a virtual environment (were I got a ssl issue).
-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/692#comment:7>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the Osgeo4w-trac mailing list