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

How to install chan via python pip




chan - Chan for Python, lovingly stolen from Go, it belongs to Classifiers:

- Development Status :: 3 - Alpha
- License :: OSI Approved :: BSD License
- Programming Language :: Python :: 2 :: Only
- Programming Language :: Python :: 2.6

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



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_chan_env

- Active the virtual environment

test_chan_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_chan_env

- Active the virtual environment

source test_chan_env/bin/active


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

To install chan on Windows(CMD):

py -m pip install chan

To install chan on Unix/macOs:

pip install chan


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

Example:

pip install chan==0.1-dev                                                        pre-release


Please see the version list below table:

VersionReleased dateCommand
chan 0.3.12013-11-24T07:34:08Windows:

py -m pip install chan==0.3.1

Unix/macOs:

pip install chan==0.3.1

chan 0.3.02013-07-04T06:44:40Windows:

py -m pip install chan==0.3.0

Unix/macOs:

pip install chan==0.3.0

chan 0.2.12013-06-30T03:10:30Windows:

py -m pip install chan==0.2.1

Unix/macOs:

pip install chan==0.2.1

chan 0.2.02013-06-12T18:24:01Windows:

py -m pip install chan==0.2.0

Unix/macOs:

pip install chan==0.2.0

chan 0.1.02013-06-06T07:33:25Windows:

py -m pip install chan==0.1.0

Unix/macOs:

pip install chan==0.1.0


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_chan_downloaded_file>

On Unix/macOs:

pip install <path_to_chan_downloaded_file>


List distribution:

- chan-0.1.0.tar.gz
- chan-0.2.0.tar.gz
- chan-0.2.1.tar.gz
- chan-0.3.0.tar.gz
- chan-0.3.1.tar.gz


Project link:

- Homepage