File: install.md

package info (click to toggle)
python-opt-einsum 3.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,772 kB
  • sloc: python: 4,124; makefile: 31; javascript: 15
file content (49 lines) | stat: -rw-r--r-- 996 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Install opt_einsum

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

## Conda

You can update `opt_einsum` using [`conda`](https://www.anaconda.com/download/):

```bash
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](https://conda-forge.github.io/).


## Pip

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](https://github.com/dgasmith/opt_einsum):

```bash
git clone https://github.com/dgasmith/opt_einsum.git
cd opt_einsum
python setup.py install
```

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

```bash
pip install -e .
```


## Test

Test `opt_einsum` with `py.test`:

```bash
cd opt_einsum
pytest
```