0

I am trying to install GDAL in my virtual Environment which is built based on python 3.13.7.

Following this page, In my environment I do:

pip install gdal

No success though. Please see the error produced: enter image description here

I undrestand that C.Gohlke does not provide wheels already since 2 years ago. What is the surrogate?

7
  • 1
    There are many roads to Rome... but I personally always use conda environments. Check out the gdal docs for more info: gdal.org/en/stable/download.html#conda Commented 2 days ago
  • Yes, I wish I could install it with conda. I am working on company PC and can not install conda on this machine. Commented 2 days ago
  • Have you tried installing miniforge as conda tool? I also have very limited rights on my company PC but I can use miniforge without problems. Commented 2 days ago
  • It seems useful, but I spent some days to migrate from "conda" environment management to "pyenv+venv" management. If I undrestood correctly I need to go back to the conda installation (with this minimalistic installation) in order to be able to install GDAL... Which In the worst case I have to. but are there any solution that let me install GDAL in my venv environment? Commented 2 days ago
  • The list of options on windows in the GDAL docs can be found here, but as mentioned above I have only practical experience with the conda way: gdal.org/en/stable/download.html#windows Commented 2 days ago

1 Answer 1

2

OK, As is mentioned in GDAL page there are few ways to install GDAL inside an isolated package manager environment.

For those who want to import gdal from inside python probably these two solutions are interesting :

  • conda

  • pixi (also relying on conda in a minimalistic way)

    I tried the pixi solution as is explained here and it works fast and clean.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.