Recently, after installing some libraries such as pyqt and labelme in CONDA environment, I planned to run a geotif to JPG program, but an error was reported at the beginning of running, showing that there was a problem with the sentence Import importlib. Machine
in imp.py, and the last line
return_ Load (SPEC) importerror: DLL load failed: the specified module could not be found Code> although import does not prompt syntax errors, it will report errors when running. It is speculated that there is a problem with the import of GDAL library. Because the GDAL installed before is available, it can not be used now. It took a long time to make trouble. Finally, it is directly reinstalled to solve the problem, which has nothing to do with the version
CONDA enters the environment,
PIP uninstall GDAL
then find the previous GDAL installation package. My GDAL is gdal-3.2.1-cp37-cp37m-win_ Amd64.whl, install this installation package directly
PIP install gdal-3.2.1-cp37-cp37m-win_ Amd64.whl
after successful installation, enter Python for import, and the problem is solved
Read More:
- Visual domain analysis of Python GDAL
- CONDA creating virtual environment and common CONDA commands
- Tensorflow installation and uninstall (Anaconda version)
- Solution: Solving Environment: failed with initial frozen solve. Retrying with flexible solve
- python: This application failed to stat could not find or load the Qt platform plugin “windows”
- RemoveError: ‘requests’ is a dependency of conda and cannot be removed from conda’s operating enviro
- Troubleshooting of errors in the installation and use of scienceplots
- Install Seaborn, plot, Jieba in Anaconda
- PackageNotInstalledError: Package is not installed in prefix
- Configuration (9) to solve the problem of “setup tools PIP wheel failed with error code 1”, create virtual environments with Python of anaconda
- This application failed to start because it could not find or load the Qt platform plugin “windows”.
- MinGW + libpython installation record
- Vs2017 C + + cannot open source file: “sdkddkver. H”, “stdio. H”, “TCHAR. H”
- To solve Anaconda error: command error out with exit status 1
- Data analysis to obtain Yahoo stock data: some problems are encountered when using panda datareader (cannot import name ‘is_ list_ Like ‘problem)
- After tensorflow installation, an error occurred while importing: importerror: DLL load failed: the specified module could not be found
- No module named numpy error in Python code
- ImportError: No module named indexes.base
- Installing PyQt4 in Windows + Python 3.6
- AttributeError: module ‘keras.backend‘ has no attribute ‘eager‘