Error installing Geoviews (cartopy) on Windows

199 Views Asked by At

after started using and learning Holoviews-Panel-HvPlot, I'd like to learn Geoviews. Unfortunatly, problems started when I tried to install it. Down below the message. Just some more details:

  • I'm a Windows 10 user
  • My Python version is 3.10.4
  • I've just pip3.10 installed last versions of both Geos and Proj (as in the error message)
  • I've read that Geoviews requires some out of python extensions that I can't get with 'pip' but I have no idea what we're talking about
  • Someone suggested to use a virtual environment for Anaconda but I don't use it. Moreover,I'd prefer having it installed in my general environment as I hope to use it often in the future.

Anyway, here the Error Message:

   Collecting cartopy>=0.18.0
      Using cached Cartopy-0.20.3.tar.gz (10.8 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... error
      error: subprocess-exited-with-error
      
      × Getting requirements to build wheel did not run successfully.
      │ exit code: 1
      ╰─> [3 lines of output]
          <string>:117: UserWarning: Unable to determine GEOS version. Ensure you have 3.7.2 or later installed, or installation may fail.
          <string>:166: UserWarning: Unable to determine Proj version. Ensure you have 8.0.0 or later installed, or installation may fail.
          Proj version 0.0.0 is installed, but cartopy requires at least version 8.0.0.
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error
    
    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
0

There are 0 best solutions below