arogozhnikov / einops

Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others)

Home Page:https://einops.rocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] error when import einops

Adolfhill opened this issue · comments

Describe the bug
there is an error when i try to impoer einops
image

Reproduction steps
use conda and this file(environment.yml) create env:

name: immatch
channels:

  • pytorch
  • conda-forge
  • defaults
    dependencies:
  • cudatoolkit=10.2
  • python=3.7
  • pytorch==1.7.0
  • torchvision
  • jupyter
  • scipy
  • matplotlib
  • opencv==4.5.2
  • einops
  • cython
  • kornia

then
conda activate immatch
python
import einops

Expected behavior
just import correctly

Your platform
Ubuntu22 and python env in above-mentioned file

Hi @Adolfhill

current einops works with python3.8+ (3.7 reached EOL).
Previous versions, e.g. einops 0.6.x support python 3.7.