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

How to install pygmt via python pip




pygmt - A Python interface for the Generic Mapping Tools, it belongs to Classifiers:

- Intended Audience :: Education

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



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_pygmt_env

- Active the virtual environment

test_pygmt_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_pygmt_env

- Active the virtual environment

source test_pygmt_env/bin/active


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

To install pygmt on Windows(CMD):

py -m pip install pygmt

To install pygmt on Unix/macOs:

pip install pygmt


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

Example:

pip install pygmt==0.0.1a0                                                        pre-release


Please see the version list below table:

VersionReleased dateCommand
pygmt 0.7.02022-07-02T03:04:55Windows:

py -m pip install pygmt==0.7.0

Unix/macOs:

pip install pygmt==0.7.0

pygmt 0.6.12022-04-11T13:44:55Windows:

py -m pip install pygmt==0.6.1

Unix/macOs:

pip install pygmt==0.6.1

pygmt 0.6.02022-03-14T19:19:12Windows:

py -m pip install pygmt==0.6.0

Unix/macOs:

pip install pygmt==0.6.0

pygmt 0.5.02021-10-29T19:48:30Windows:

py -m pip install pygmt==0.5.0

Unix/macOs:

pip install pygmt==0.5.0

pygmt 0.4.12021-08-07T11:00:35Windows:

py -m pip install pygmt==0.4.1

Unix/macOs:

pip install pygmt==0.4.1

pygmt 0.4.02021-06-20T23:47:06Windows:

py -m pip install pygmt==0.4.0

Unix/macOs:

pip install pygmt==0.4.0

pygmt 0.3.12021-03-14T11:19:51Windows:

py -m pip install pygmt==0.3.1

Unix/macOs:

pip install pygmt==0.3.1

pygmt 0.3.02021-02-15T13:44:45Windows:

py -m pip install pygmt==0.3.0

Unix/macOs:

pip install pygmt==0.3.0

pygmt 0.2.12020-11-14T08:14:01Windows:

py -m pip install pygmt==0.2.1

Unix/macOs:

pip install pygmt==0.2.1

pygmt 0.2.02020-09-12T01:59:19Windows:

py -m pip install pygmt==0.2.0

Unix/macOs:

pip install pygmt==0.2.0

pygmt 0.1.22020-07-07T01:14:01Windows:

py -m pip install pygmt==0.1.2

Unix/macOs:

pip install pygmt==0.1.2

pygmt 0.1.12020-05-22T03:22:55Windows:

py -m pip install pygmt==0.1.1

Unix/macOs:

pip install pygmt==0.1.1

pygmt 0.1.02020-05-03T05:10:21Windows:

py -m pip install pygmt==0.1.0

Unix/macOs:

pip install pygmt==0.1.0


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_pygmt_downloaded_file>

On Unix/macOs:

pip install <path_to_pygmt_downloaded_file>


List distribution:


Project link:

- Homepage