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

How to install smartpy via python pip




smartpy - An implementation of the rainfall-runoff model SMART in Python, it belongs to Classifiers:

- Development Status :: 4 - Beta
- Intended Audience :: Science/Research
- Natural Language :: English
- Operating System :: MacOS
- Operating System :: Microsoft
- Operating System :: Microsoft :: Windows
- Operating System :: POSIX
- Operating System :: POSIX :: Linux
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
- Topic :: Scientific/Engineering
- Topic :: Scientific/Engineering :: Hydrology

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



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_smartpy_env

- Active the virtual environment

test_smartpy_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_smartpy_env

- Active the virtual environment

source test_smartpy_env/bin/active


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

To install smartpy on Windows(CMD):

py -m pip install smartpy

To install smartpy on Unix/macOs:

pip install smartpy


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

Example:

pip install smartpy==0.1.0


Please see the version list below table:

VersionReleased dateCommand
smartpy 0.2.22022-02-14T16:18:21Windows:

py -m pip install smartpy==0.2.2

Unix/macOs:

pip install smartpy==0.2.2

smartpy 0.2.12019-08-24T15:59:15Windows:

py -m pip install smartpy==0.2.1

Unix/macOs:

pip install smartpy==0.2.1

smartpy 0.2.02018-11-16T14:50:20Windows:

py -m pip install smartpy==0.2.0

Unix/macOs:

pip install smartpy==0.2.0

smartpy 0.1.4.post22018-11-12T16:10:02Windows:

py -m pip install smartpy==0.1.4.post2

Unix/macOs:

pip install smartpy==0.1.4.post2

smartpy 0.1.4.post12018-11-12T15:24:22Windows:

py -m pip install smartpy==0.1.4.post1

Unix/macOs:

pip install smartpy==0.1.4.post1

smartpy 0.1.42018-11-12T14:54:21Windows:

py -m pip install smartpy==0.1.4

Unix/macOs:

pip install smartpy==0.1.4

smartpy 0.1.32018-07-25T13:08:14Windows:

py -m pip install smartpy==0.1.3

Unix/macOs:

pip install smartpy==0.1.3

smartpy 0.1.22018-07-18T15:46:09Windows:

py -m pip install smartpy==0.1.2

Unix/macOs:

pip install smartpy==0.1.2

smartpy 0.1.12018-07-17T17:15:52Windows:

py -m pip install smartpy==0.1.1

Unix/macOs:

pip install smartpy==0.1.1

smartpy 0.1.02018-07-17T16:32:08Windows:

py -m pip install smartpy==0.1.0

Unix/macOs:

pip install smartpy==0.1.0


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_smartpy_downloaded_file>

On Unix/macOs:

pip install <path_to_smartpy_downloaded_file>


List distribution:


Project link:

- Download
- Bug Tracker
- Documentation
- Source Code
- User Support