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

How to install PubChemPy via python pip




PubChemPy - A simple Python wrapper around the PubChem PUG REST API., it belongs to Classifiers:

- Topic :: Database
- Topic :: Database :: Front-Ends
- Topic :: Scientific/Engineering :: Chemistry

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



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_PubChemPy_env

- Active the virtual environment

test_PubChemPy_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_PubChemPy_env

- Active the virtual environment

source test_PubChemPy_env/bin/active


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

To install PubChemPy on Windows(CMD):

py -m pip install PubChemPy

To install PubChemPy on Unix/macOs:

pip install PubChemPy


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

Example:

pip install PubChemPy==1.0


Please see the version list below table:

VersionReleased dateCommand
PubChemPy 1.0.42017-04-11T18:36:14Windows:

py -m pip install PubChemPy==1.0.4

Unix/macOs:

pip install PubChemPy==1.0.4

PubChemPy 1.0.32015-03-07T13:01:39Windows:

py -m pip install PubChemPy==1.0.3

Unix/macOs:

pip install PubChemPy==1.0.3

PubChemPy 1.0.22014-04-02T10:45:10Windows:

py -m pip install PubChemPy==1.0.2

Unix/macOs:

pip install PubChemPy==1.0.2

PubChemPy 1.0.12014-01-06T13:58:37Windows:

py -m pip install PubChemPy==1.0.1

Unix/macOs:

pip install PubChemPy==1.0.1

PubChemPy 1.02013-05-01T16:06:09Windows:

py -m pip install PubChemPy==1.0

Unix/macOs:

pip install PubChemPy==1.0


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_PubChemPy_downloaded_file>

On Unix/macOs:

pip install <path_to_PubChemPy_downloaded_file>


List distribution:


Project link:

- Homepage