Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 3.14 KB

pip.rst

File metadata and controls

72 lines (47 loc) · 3.14 KB

Installation from PyPi with pip

Preparation: install requirements

If you have the [conda] package manager from anaconda, you can just download the environment.yml file out of the repository and create a new environment (called tenpy, if you don't speficy another name) for TeNPy with all the required packages:

conda env create -f environment.yml
conda activate tenpy

Further information on conda environments can be found in the conda documentation. Note that installing conda also installs a version of [pip].

Alternatively, if you only have [pip] (and not [conda]), install the required packages with the following command (after downloading the requirements.txt file from the repository):

pip install -r requirements.txt

Installing the latest stable TeNPy package

Now we are ready to install TeNPy. It should be as easy as (note the different package name - 'tenpy' was taken!) :

pip install physics-tenpy

Installation of the latest version from Github

To get the latest development version from the github master branch, you can use:

pip install git+git://github.com/tenpy/tenpy.git

This should already have the lastest features described in /changelog/latest. Disclaimer: this might sometimes be broken, although we do our best to keep to keep it stable as well.

Installation from the downloaded source folder

Finally, if you downloaded the source and want to modify parts of the source, You can also install TeNPy with in development version with --editable:

cd $HOME/tenpy # after downloading the source, got to the repository
pip install --editable .

Uninstalling a pip-installed version

In all of the above cases, you can uninstall tenpy with:

pip uninstall physics-tenpy