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

How to install petrel via python pip




petrel - Storm Topology Builder, it belongs to Classifiers:

- Operating System :: POSIX
- Operating System :: POSIX :: Linux
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: System
- Topic :: System :: Distributed Computing

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



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_petrel_env

- Active the virtual environment

test_petrel_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_petrel_env

- Active the virtual environment

source test_petrel_env/bin/active


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

To install petrel on Windows(CMD):

py -m pip install petrel

To install petrel on Unix/macOs:

pip install petrel


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

Example:

pip install petrel==0.8.2.0.1


Please see the version list below table:

VersionReleased dateCommand
petrel 1.0.3.0.3.post12017-04-27T02:29:11Windows:

py -m pip install petrel==1.0.3.0.3.post1

Unix/macOs:

pip install petrel==1.0.3.0.3.post1

petrel 1.0.3.0.32017-04-18T23:08:59Windows:

py -m pip install petrel==1.0.3.0.3

Unix/macOs:

pip install petrel==1.0.3.0.3

petrel 1.0.2.0.32016-12-02T21:11:28Windows:

py -m pip install petrel==1.0.2.0.3

Unix/macOs:

pip install petrel==1.0.2.0.3

petrel 1.0.1.0.32016-05-17T22:02:53Windows:

py -m pip install petrel==1.0.1.0.3

Unix/macOs:

pip install petrel==1.0.1.0.3

petrel 0.10.0.0.32016-04-20T23:55:01Windows:

py -m pip install petrel==0.10.0.0.3

Unix/macOs:

pip install petrel==0.10.0.0.3

petrel 0.9.4.0.32015-09-29T01:19:12Windows:

py -m pip install petrel==0.9.4.0.3

Unix/macOs:

pip install petrel==0.9.4.0.3

petrel 0.9.3.0.32015-02-19T21:23:59Windows:

py -m pip install petrel==0.9.3.0.3

Unix/macOs:

pip install petrel==0.9.3.0.3

petrel 0.9.3.0.22015-02-01T13:41:49Windows:

py -m pip install petrel==0.9.3.0.2

Unix/macOs:

pip install petrel==0.9.3.0.2

petrel 0.9.3.0.12015-01-27T02:36:53Windows:

py -m pip install petrel==0.9.3.0.1

Unix/macOs:

pip install petrel==0.9.3.0.1

petrel 0.9.0.0.12014-01-22T02:42:43Windows:

py -m pip install petrel==0.9.0.0.1

Unix/macOs:

pip install petrel==0.9.0.0.1

petrel 0.8.2.0.12013-02-12T18:44:40Windows:

py -m pip install petrel==0.8.2.0.1

Unix/macOs:

pip install petrel==0.8.2.0.1


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

Download the distribution file from petrel-1.0.3.0.3.post1-py3-none-any.whl or the specific petrel version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_petrel_downloaded_file>

On Unix/macOs:

pip install <path_to_petrel_downloaded_file>


List distribution:


Project link:

- Homepage