I get a bunch of errors when trying to import cupy
.
[reik@reik-msi ~]$ python
Python 3.8.6 (default, Sep 30 2020, 04:00:38)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cupy
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/cupy/__init__.py", line 20, in <module>
from cupy import core # NOQA
File "/usr/lib/python3.8/site-packages/cupy/core/__init__.py", line 1, in <module>
from cupy.core import core # NOQA
File "cupy/core/core.pyx", line 1, in init cupy.core.core
File "/usr/lib/python3.8/site-packages/cupy/cuda/__init__.py", line 5, in <module>
from cupy.cuda import compiler # NOQA
File "/usr/lib/python3.8/site-packages/cupy/cuda/compiler.py", line 10, in <module>
from cupy.cuda import device
File "cupy/cuda/device.pyx", line 9, in init cupy.cuda.device
ImportError: libcusolver.so.11: cannot open shared object file: No such file or directory
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/cupy/__init__.py", line 41, in <module>
raise ImportError(_msg) from e
ImportError: CuPy is not correctly installed.
If you are using wheel distribution (cupy-cudaXX), make sure that the version of CuPy you installed matches with the version of CUDA on your host.
Also, confirm that only one CuPy package is installed:
$ pip freeze
If you are building CuPy from source, please check your environment, uninstall CuPy and reinstall it with:
$ pip install cupy --no-cache-dir -vvvv
Check the Installation Guide for details:
https://docs.cupy.dev/en/latest/install.html
original error: libcusolver.so.11: cannot open shared object file: No such file or directory
>>> quit()
I have CUDA 11.
Pinned Comments
petronny commented on 2023-01-29 09:52 (UTC)
Prebuilt binary can be found in the arch4edu repository.