<div dir="ltr"><div>Hi. I installed OSGeo4W on computers that already have a Python
installation. Upon launching QGIS, I got a an error for loading the SIP
module:</div><div>ImportError: DLL load failed while importing QtCore<br></div><div>The Python search path at the end of the error dialog shows that
site-packages from the Python installation are being loaded
before the ones from OSGeo4W:</div><div><br></div><div>C:/Apps/OSGeo4W/apps/qgis/./python<br>C:/Users/USERNAME/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python<br>C:/Users/USERNAME/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins<br>C:/Apps/OSGeo4W/apps/qgis/./python/plugins<br>C:\\Apps\\OSGeo4W\\bin\\python39.zip<br>C:\\Apps\\OSGeo4W\\apps\\Python39\\DLLs<br>C:\\Apps\\OSGeo4W\\apps\\Python39\\lib<br>C:\\Apps\\OSGeo4W\\bin<br><br>C:\\Users\\USERNAME\\AppData\\Roaming\\Python\\Python39\\site-packages<br>C:\\Users\\USERNAME\\AppData\\Roaming\\Python\\Python39\\site-packages\\win32<br>C:\\Users\\USERNAME\\AppData\\Roaming\\Python\\Python39\\site-packages\\win32\\lib<br>C:\\Users\\USERNAME\\AppData\\Roaming\\Python\\Python39\\site-packages\\Pythonwin<br><br>C:\\Apps\\OSGeo4W\\apps\\Python39<br>C:\\Apps\\OSGeo4W\\apps\\Python39\\lib\\site-packages<br>C:\\Apps\\OSGeo4W\\apps\\Python39\\lib\\site-packages\\win32<br>C:\\Apps\\OSGeo4W\\apps\\Python39\\lib\\site-packages\\win32\\lib<br>C:\\Apps\\OSGeo4W\\apps\\Python39\\lib\\site-packages\\Pythonwin</div><div><br></div><div></div><div>I've been trying to modify the OSGeo4W PYTHONPATH environment variable on the .bat files, but have not been successful.</div><div><br></div><div>This is the first time that I have this issue. Any explanation on why, and how to fix it is really appreciated. Thanks!<br></div></div>