ich habe eine (frisch aufgesetzte) Installation von QGIS 3.22.16. Diese enthält ein Python 3.9.
Meine Absicht ist es, einige Plugins dafür zu schreiben, was aber voraussetzt, dass ich einige Module nachinstallieren kann, u.a. cx_Oracle.
Wenn ich vom Scripts- Verzeichnis aus PIP aufrufe, bekomme ich die Fehlermeldung
Code: Alles auswählen
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Nächster Versuch:
Code: Alles auswählen
python.exe -m pip install cx_Oracle --upgrade
...
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cx-oracle/
Code: Alles auswählen
import sys
import subprocess
def Package_Install(package):
subprocess.check_call([sys.executable, '-m', 'pip', 'install', package])
Package_Install('oracledb ')
(oracledb soll wohl der neue heiße Scheiß nach cx_Oracle sein)
Was kann ich tun?
- Windows 10
- hinter Firewall und Zwangsproxy
- Version fest vorgegeben
- ich brauche das jetzt nicht unbedingt in einer virtuellen Umgebung, da dieses Modul im Grunde für ALLE Plugins benötigt wird