Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install Cartopy via python pip




Cartopy - A cartographic python library with Matplotlib support for visualisation, it belongs to Classifiers:

- Development Status :: 4 - Beta
- Framework :: Matplotlib
- License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
- Operating System :: MacOS
- Operating System :: MacOS :: MacOS X
- Operating System :: Microsoft
- Operating System :: Microsoft :: Windows
- Operating System :: POSIX
- Operating System :: POSIX :: AIX
- Operating System :: POSIX :: Linux
- Programming Language :: C
- Programming Language :: C++
- Programming Language :: Python :: 3 :: Only
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
- Topic :: Scientific/Engineering
- Topic :: Scientific/Engineering :: GIS
- Topic :: Scientific/Engineering :: Visualization

When you know about this project and you want to new install Cartopy to support your project or you get trouble as ModuleNotFoundError: No module named "Cartopy" or ImportError: cannot import name "Cartopy" in your project, let follow this tutorial to install Cartopy



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_Cartopy_env

- Active the virtual environment

test_Cartopy_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_Cartopy_env

- Active the virtual environment

source test_Cartopy_env/bin/active


Step 2: OK, now, let flow below content to start the installation Cartopy

To install Cartopy on Windows(CMD):

py -m pip install Cartopy

To install Cartopy on Unix/macOs:

pip install Cartopy


Step 3: If you want to install a specific Cartopy version, add ==<Cartopy version> to the end command line

Example:

pip install Cartopy==0.11.0


Please see the version list below table:

VersionReleased dateCommand
Cartopy 0.20.32022-06-29T03:08:54Windows:

py -m pip install Cartopy==0.20.3

Unix/macOs:

pip install Cartopy==0.20.3

Cartopy 0.20.22022-01-13T02:48:14Windows:

py -m pip install Cartopy==0.20.2

Unix/macOs:

pip install Cartopy==0.20.2

Cartopy 0.20.12021-10-08T23:44:10Windows:

py -m pip install Cartopy==0.20.1

Unix/macOs:

pip install Cartopy==0.20.1

Cartopy 0.20.02021-09-17T14:18:50Windows:

py -m pip install Cartopy==0.20.0

Unix/macOs:

pip install Cartopy==0.20.0

Cartopy 0.19.0.post12021-04-23T16:49:22Windows:

py -m pip install Cartopy==0.19.0.post1

Unix/macOs:

pip install Cartopy==0.19.0.post1

Cartopy 0.18.02020-05-04T03:02:47Windows:

py -m pip install Cartopy==0.18.0

Unix/macOs:

pip install Cartopy==0.18.0

Cartopy 0.17.02018-11-17T07:43:32Windows:

py -m pip install Cartopy==0.17.0

Unix/macOs:

pip install Cartopy==0.17.0

Cartopy 0.16.02018-02-23T05:45:54Windows:

py -m pip install Cartopy==0.16.0

Unix/macOs:

pip install Cartopy==0.16.0

Cartopy 0.15.12017-08-01T07:32:32Windows:

py -m pip install Cartopy==0.15.1

Unix/macOs:

pip install Cartopy==0.15.1

Cartopy 0.14.22016-04-21T09:56:33Windows:

py -m pip install Cartopy==0.14.2

Unix/macOs:

pip install Cartopy==0.14.2

Cartopy 0.14.02016-04-05T14:46:21Windows:

py -m pip install Cartopy==0.14.0

Unix/macOs:

pip install Cartopy==0.14.0

Cartopy 0.13.12016-04-05T14:45:13Windows:

py -m pip install Cartopy==0.13.1

Unix/macOs:

pip install Cartopy==0.13.1

Cartopy 0.13.02015-07-01T15:00:55Windows:

py -m pip install Cartopy==0.13.0

Unix/macOs:

pip install Cartopy==0.13.0

Cartopy 0.12.0.52015-05-05T18:29:39Windows:

py -m pip install Cartopy==0.12.0.5

Unix/macOs:

pip install Cartopy==0.12.0.5

Cartopy 0.12.0.42015-05-05T18:26:48Windows:

py -m pip install Cartopy==0.12.0.4

Unix/macOs:

pip install Cartopy==0.12.0.4

Cartopy 0.11.02014-06-25T13:00:02Windows:

py -m pip install Cartopy==0.11.0

Unix/macOs:

pip install Cartopy==0.11.0


Step 4: Otherwise, you can install Cartopy from local archives:

Download the distribution file from Cartopy-0.20.3.tar.gz or the specific Cartopy version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_Cartopy_downloaded_file>

On Unix/macOs:

pip install <path_to_Cartopy_downloaded_file>


List distribution:

- cartopy-0.11.0.tar.gz
- Cartopy-0.12.0.4.tar.gz
- Cartopy-0.12.0.5.tar.gz
- Cartopy-0.13.0.tar.gz
- Cartopy-0.13.1.tar.gz
- Cartopy-0.14.0.tar.gz
- Cartopy-0.14.2.tar.gz
- Cartopy-0.15.1.tar.gz
- Cartopy-0.16.0.tar.gz
- Cartopy-0.17.0.tar.gz
- Cartopy-0.18.0b1.tar.gz (python version >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*)
- Cartopy-0.18.0b2.tar.gz (python version >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*)
- Cartopy-0.18.0rc1.tar.gz (python version >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*)
- Cartopy-0.18.0.tar.gz (python version >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*)
- Cartopy-0.19.0rc1.tar.gz (python version >=3.5)
- Cartopy-0.19.0.post1.tar.gz (python version >=3.5)
- Cartopy-0.20.0.tar.gz (python version >=3.7)
- Cartopy-0.20.1.tar.gz (python version >=3.7)
- Cartopy-0.20.2.tar.gz (python version >=3.7)
- Cartopy-0.20.3.tar.gz (python version >=3.7)
- Cartopy-0.21.0.tar.gz (python version >=3.8)
- Cartopy-0.21.1.tar.gz (python version >=3.8)


Project link:

- Homepage
- Download