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

How to install sh via python pip




sh - Python subprocess replacement, it belongs to Classifiers:

- Development Status :: 5 - Production/Stable
- Environment :: Console
- Intended Audience :: System Administrators
- Programming Language :: Python :: 2
- Programming Language :: Python :: 2.7
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.2
- Programming Language :: Python :: 3.3
- Programming Language :: Python :: 3.4
- Programming Language :: Python :: 3.5
- Programming Language :: Python :: 3.6
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
- Programming Language :: Python :: Implementation
- Programming Language :: Python :: Implementation :: CPython
- Programming Language :: Python :: Implementation :: PyPy
- Topic :: Software Development :: Build Tools
- Topic :: Software Development :: Libraries
- Topic :: Software Development :: Libraries :: Python Modules

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



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_sh_env

- Active the virtual environment

test_sh_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_sh_env

- Active the virtual environment

source test_sh_env/bin/active


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

To install sh on Windows(CMD):

py -m pip install sh

To install sh on Unix/macOs:

pip install sh


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

Example:

pip install sh==0.01


Please see the version list below table:

VersionReleased dateCommand
sh 1.14.32022-07-18T07:17:50Windows:

py -m pip install sh==1.14.3

Unix/macOs:

pip install sh==1.14.3

sh 1.14.22021-05-15T03:40:51Windows:

py -m pip install sh==1.14.2

Unix/macOs:

pip install sh==1.14.2

sh 1.14.12020-10-24T17:36:13Windows:

py -m pip install sh==1.14.1

Unix/macOs:

pip install sh==1.14.1

sh 1.14.02020-08-29T02:07:17Windows:

py -m pip install sh==1.14.0

Unix/macOs:

pip install sh==1.14.0

sh 1.13.12020-04-28T14:15:11Windows:

py -m pip install sh==1.13.1

Unix/macOs:

pip install sh==1.13.1

sh 1.13.02020-04-27T18:19:30Windows:

py -m pip install sh==1.13.0

Unix/macOs:

pip install sh==1.13.0

sh 1.12.142017-06-07T03:09:50Windows:

py -m pip install sh==1.12.14

Unix/macOs:

pip install sh==1.12.14

sh 1.12.132017-03-30T21:55:20Windows:

py -m pip install sh==1.12.13

Unix/macOs:

pip install sh==1.12.13

sh 1.12.122017-03-30T21:51:54Windows:

py -m pip install sh==1.12.12

Unix/macOs:

pip install sh==1.12.12

sh 1.12.112017-03-14T05:20:14Windows:

py -m pip install sh==1.12.11

Unix/macOs:

pip install sh==1.12.11

sh 1.12.102017-03-02T09:03:14Windows:

py -m pip install sh==1.12.10

Unix/macOs:

pip install sh==1.12.10

sh 1.12.92017-01-04T22:48:01Windows:

py -m pip install sh==1.12.9

Unix/macOs:

pip install sh==1.12.9

sh 1.12.82016-12-16T12:21:54Windows:

py -m pip install sh==1.12.8

Unix/macOs:

pip install sh==1.12.8

sh 1.12.72016-12-07T23:05:19Windows:

py -m pip install sh==1.12.7

Unix/macOs:

pip install sh==1.12.7

sh 1.12.62016-12-02T23:53:04Windows:

py -m pip install sh==1.12.6

Unix/macOs:

pip install sh==1.12.6

sh 1.12.52016-12-01T08:52:48Windows:

py -m pip install sh==1.12.5

Unix/macOs:

pip install sh==1.12.5

sh 1.12.42016-12-01T06:26:28Windows:

py -m pip install sh==1.12.4

Unix/macOs:

pip install sh==1.12.4

sh 1.12.32016-11-29T19:55:13Windows:

py -m pip install sh==1.12.3

Unix/macOs:

pip install sh==1.12.3

sh 1.12.22016-11-29T03:59:30Windows:

py -m pip install sh==1.12.2

Unix/macOs:

pip install sh==1.12.2

sh 1.12.12016-11-29T01:01:05Windows:

py -m pip install sh==1.12.1

Unix/macOs:

pip install sh==1.12.1

sh 1.12.02016-11-27T04:00:17Windows:

py -m pip install sh==1.12.0

Unix/macOs:

pip install sh==1.12.0

sh 1.112014-12-31T16:59:02Windows:

py -m pip install sh==1.11

Unix/macOs:

pip install sh==1.11

sh 1.102014-12-31T04:26:04Windows:

py -m pip install sh==1.10

Unix/macOs:

pip install sh==1.10

sh 1.092013-09-08T17:33:32Windows:

py -m pip install sh==1.09

Unix/macOs:

pip install sh==1.09

sh 1.082013-01-30T02:58:04Windows:

py -m pip install sh==1.08

Unix/macOs:

pip install sh==1.08

sh 1.072012-11-21T23:19:20Windows:

py -m pip install sh==1.07

Unix/macOs:

pip install sh==1.07

sh 1.062012-11-10T08:28:07Windows:

py -m pip install sh==1.06

Unix/macOs:

pip install sh==1.06

sh 1.052012-10-20T19:01:42Windows:

py -m pip install sh==1.05

Unix/macOs:

pip install sh==1.05

sh 1.042012-10-08T03:56:23Windows:

py -m pip install sh==1.04

Unix/macOs:

pip install sh==1.04

sh 1.032012-09-20T06:39:45Windows:

py -m pip install sh==1.03

Unix/macOs:

pip install sh==1.03

sh 1.022012-09-17T00:24:58Windows:

py -m pip install sh==1.02

Unix/macOs:

pip install sh==1.02

sh 1.012012-09-16T09:14:53Windows:

py -m pip install sh==1.01

Unix/macOs:

pip install sh==1.01

sh 1.02012-09-14T07:58:50Windows:

py -m pip install sh==1.0

Unix/macOs:

pip install sh==1.0

sh 0.1082012-07-17T01:48:01Windows:

py -m pip install sh==0.108

Unix/macOs:

pip install sh==0.108

sh 0.1072012-06-28T02:07:15Windows:

py -m pip install sh==0.107

Unix/macOs:

pip install sh==0.107

sh 0.1062012-06-28T02:05:20Windows:

py -m pip install sh==0.106

Unix/macOs:

pip install sh==0.106

sh 0.012012-03-23T00:19:05Windows:

py -m pip install sh==0.01

Unix/macOs:

pip install sh==0.01


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_sh_downloaded_file>

On Unix/macOs:

pip install <path_to_sh_downloaded_file>


List distribution:


Project link:

- Homepage