Saya mencoba mengubah proses QGIS 2 tanpa hasil.
Saya pertama kali harus mengedit C: \ Program Files \ QGIS 2.99 \ etc \ ini \ python-core.bat yang berisi referensi ke Python27 bukan Python36.
Saya menjalankan C: \ Program Files \ QGIS 2.99 \ bin \ o4w_env.bat untuk mengkonfigurasi lingkungan python QGIS dengan benar, tetapi kemudian, ketika saya meluncurkan:
"C:\Program Files\QGIS 2.99\apps\Python36\Scripts\pyuic5.bat" -o dockwidget_base.py dockwidget_base.ui
Saya mendapatkan kesalahan ini:
Traceback (most recent call last):
File "C:\PROGRA~1\QGIS2~1.99\apps\Python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\PROGRA~1\QGIS2~1.99\apps\Python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\PROGRA~1\QGIS2~1.99\apps\Python36\lib\site-packages\PyQt5\uic\pyuic.py", line 26, in <module>
from PyQt5 import QtCore
ImportError: DLL load failed: Specified module could not be found.
Demikian pula ketika saya meluncurkan:
"C:\Program Files\QGIS 2.99\apps\Python36\Scripts\pyrcc5.bat" -o resources_rc.py resources.qrc
Saya mendapatkan kesalahan ini:
Traceback (most recent call last):
File "C:\PROGRA~1\QGIS2~1.99\apps\Python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\PROGRA~1\QGIS2~1.99\apps\Python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\PROGRA~1\QGIS2~1.99\apps\Python36\lib\site-packages\PyQt5\pyrcc_main.py", line 21, in <module>
from PyQt5.QtCore import PYQT_VERSION_STR, QDir, QFile
ImportError: DLL load failed: Specified module could not be found.