Skip to content

Install opt_einsum

You can install opt_einsum with conda, with pip, or by installing from source.


You can update opt_einsum using conda:

conda install opt_einsum -c conda-forge

This installs opt_einsum and the NumPy dependency.

The opt_einsum package is maintained on the conda-forge channel.


To install opt_einsum with pip there are a few options, depending on which dependencies you would like to keep up to date:

  • pip install opt_einsum

Install from Source

To install opt_einsum from source, clone the repository from github:

git clone
cd opt_einsum
python install

or use pip locally if you want to install all dependencies as well::

pip install -e .


Test opt_einsum with py.test:

cd opt_einsum