Search code examples
pythonvisual-studio-codecartopy

cartopy *whl is not a supported wheel on this platform


I am running Python 3.11.3 on VSCode Studio. But I want to install Cartopy, and it's not working. The code is given below.

C:\Users\HomePC\AppData\Local\Programs\Python\Python311>pip install 
C:\Users\HomePC\AppData\Local\Programs\Python\Python311\Cartopy-0.20.2-cp310-cp310-win32.whl

The error is this:

ERROR: Cartopy-0.20.2-cp310-cp310-win32.whl is not a supported wheel on this platform.

Please advise on how to resolve this matter.


Solution

  • The easiest way to install Cartopy is by using Conda. If conda is already installed, installation is as easy as:

    conda install -c conda-forge cartopy
    

    More installation methods of Cartopy

    Conda in the vscode official documentation