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

How to install petgem via python pip




petgem - Parallel python code for electromagnetic modeling in geophysics using high-order nédélec finite elements, it belongs to Classifiers:

- License :: Free for non-commercial use
- Operating System :: POSIX :: Linux

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



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_petgem_env

- Active the virtual environment

test_petgem_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_petgem_env

- Active the virtual environment

source test_petgem_env/bin/active


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

To install petgem on Windows(CMD):

py -m pip install petgem

To install petgem on Unix/macOs:

pip install petgem


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

Example:

pip install petgem==0.4


Please see the version list below table:

VersionReleased dateCommand
petgem 0.92020-11-26T14:24:34Windows:

py -m pip install petgem==0.9

Unix/macOs:

pip install petgem==0.9

petgem 0.82020-09-04T12:11:42Windows:

py -m pip install petgem==0.8

Unix/macOs:

pip install petgem==0.8

petgem 0.72020-07-22T09:55:20Windows:

py -m pip install petgem==0.7

Unix/macOs:

pip install petgem==0.7

petgem 0.62020-04-01T20:21:31Windows:

py -m pip install petgem==0.6

Unix/macOs:

pip install petgem==0.6

petgem 0.52018-10-09T13:58:18Windows:

py -m pip install petgem==0.5

Unix/macOs:

pip install petgem==0.5

petgem 0.42018-02-21T17:44:59Windows:

py -m pip install petgem==0.4

Unix/macOs:

pip install petgem==0.4


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_petgem_downloaded_file>

On Unix/macOs:

pip install <path_to_petgem_downloaded_file>


List distribution:


Project link:

- Homepage
- Download