pip failed to install/pip install osgeo failed

  1. Enter the official expansion package download website to find the whl file for version adaptation

Notice:

  • To select cp (python version) corresponds to the version of your python interpreter. For example, my python version is 3.7.13, just select the version corresponding to cp37
  • Although my CPU is from Intel, I need to choose to download amd64 to pip normally (because using "AMD64" or "amd64" refers to both AMD64 and Intel64)

insert image description here

  1. Move the whl file you just downloaded to the Scripts file in the python environment

insert image description here

  1. Open cmd here, and then run pip install xxx.whl
    Note: If it is a conda environment, you need to start the conda virtual environment before downloading

insert image description here

  1. Re-open the file that needs to be imported into osgeo, and you will find that no error is reported.

Summary: If you can’t install normally with pip, you can go to the official website to download the official whl file, move it to the Scripts file, and you can use the required packages normally

Guess you like

Origin blog.csdn.net/Coder_J7/article/details/130797427
Recommended