Skip to content

numpy.distutils do not exist enymore

The installation of anaio fails via setup.py. However, the installation via pip install works, provided that numpy is installed manually before.

Workaround

$ pip install numpy
Collecting numpy
  Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)
Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Installing collected packages: numpy
Successfully installed numpy-1.24.4

$ pip install anaio
Collecting anaio
  Using cached anaio-1.0.4-cp38-cp38-linux_x86_64.whl
Requirement already satisfied: wheel in /home/johoelken/.local/share/virtualenvs/ana_test-kwUah76k/lib/python3.8/site-packages (from anaio) (0.43.0)
Requirement already satisfied: setuptools in /home/johoelken/.local/share/virtualenvs/ana_test-kwUah76k/lib/python3.8/site-packages (from anaio) (71.0.4)
Requirement already satisfied: numpy in /home/johoelken/.local/share/virtualenvs/ana_test-kwUah76k/lib/python3.8/site-packages (from anaio) (1.24.4)
Installing collected packages: anaio
Successfully installed anaio-1.0.4

$ python
Python 3.8.10 (default, Sep 11 2024, 16:02:53)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import anaio
>>> print(repr(anaio.fzread))
<function fzread at 0x7f8431210790>
>>>
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information