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
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
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.
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 .
In all of the above cases, you can uninstall tenpy with:
pip uninstall physics-tenpy