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

How to install tsinfer via python pip




tsinfer - Infer tree sequences from genetic variation data., it belongs to Classifiers:

- Environment :: Other Environment
- License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
- Topic :: Scientific/Engineering :: Bio-Informatics

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



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_tsinfer_env

- Active the virtual environment

test_tsinfer_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_tsinfer_env

- Active the virtual environment

source test_tsinfer_env/bin/active


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

To install tsinfer on Windows(CMD):

py -m pip install tsinfer

To install tsinfer on Unix/macOs:

pip install tsinfer


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

Example:

pip install tsinfer==0.1.1


Please see the version list below table:

VersionReleased dateCommand
tsinfer 0.2.32022-04-08T11:22:44Windows:

py -m pip install tsinfer==0.2.3

Unix/macOs:

pip install tsinfer==0.2.3

tsinfer 0.2.22022-02-23T16:37:05Windows:

py -m pip install tsinfer==0.2.2

Unix/macOs:

pip install tsinfer==0.2.2

tsinfer 0.2.12021-05-26T12:05:39Windows:

py -m pip install tsinfer==0.2.1

Unix/macOs:

pip install tsinfer==0.2.1

tsinfer 0.2.02020-12-18T16:10:17Windows:

py -m pip install tsinfer==0.2.0

Unix/macOs:

pip install tsinfer==0.2.0

tsinfer 0.1.42018-12-12T13:27:13Windows:

py -m pip install tsinfer==0.1.4

Unix/macOs:

pip install tsinfer==0.1.4

tsinfer 0.1.32018-11-02T10:46:54Windows:

py -m pip install tsinfer==0.1.3

Unix/macOs:

pip install tsinfer==0.1.3

tsinfer 0.1.22018-06-20T13:06:26Windows:

py -m pip install tsinfer==0.1.2

Unix/macOs:

pip install tsinfer==0.1.2

tsinfer 0.1.12018-05-12T21:13:18Windows:

py -m pip install tsinfer==0.1.1

Unix/macOs:

pip install tsinfer==0.1.1


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_tsinfer_downloaded_file>

On Unix/macOs:

pip install <path_to_tsinfer_downloaded_file>


List distribution:


Project link:

- Homepage