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

How to install surfgraph via python pip




surfgraph - A package for generating chemical environment graphs of surfaces, it belongs to Classifiers:

- Framework :: Matplotlib
- License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
- Topic :: Scientific/Engineering :: Chemistry
- Topic :: Scientific/Engineering :: Physics

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



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_surfgraph_env

- Active the virtual environment

test_surfgraph_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_surfgraph_env

- Active the virtual environment

source test_surfgraph_env/bin/active


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

To install surfgraph on Windows(CMD):

py -m pip install surfgraph

To install surfgraph on Unix/macOs:

pip install surfgraph


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

Example:

pip install surfgraph==0.1


Please see the version list below table:

VersionReleased dateCommand
surfgraph 0.3.12021-02-17T20:30:54Windows:

py -m pip install surfgraph==0.3.1

Unix/macOs:

pip install surfgraph==0.3.1

surfgraph 0.2.22021-02-14T01:01:59Windows:

py -m pip install surfgraph==0.2.2

Unix/macOs:

pip install surfgraph==0.2.2

surfgraph 0.2.12021-01-25T08:05:18Windows:

py -m pip install surfgraph==0.2.1

Unix/macOs:

pip install surfgraph==0.2.1

surfgraph 0.2.02021-01-25T07:57:31Windows:

py -m pip install surfgraph==0.2.0

Unix/macOs:

pip install surfgraph==0.2.0

surfgraph 0.1.12021-01-25T07:53:51Windows:

py -m pip install surfgraph==0.1.1

Unix/macOs:

pip install surfgraph==0.1.1

surfgraph 0.12021-01-25T07:41:30Windows:

py -m pip install surfgraph==0.1

Unix/macOs:

pip install surfgraph==0.1


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

Download the distribution file from surfgraph-0.3.1-py3-none-any.whl or the specific surfgraph version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_surfgraph_downloaded_file>

On Unix/macOs:

pip install <path_to_surfgraph_downloaded_file>


List distribution:


Project link: