при импорте pyculib, я получаю следующую ошибку. Я установил Pyculib с помощью pip, Конда не удалось по некоторым вопросам окружающей среды. Попросите кого-нибудь помочь. Я не технический парень, но учусь на веревках. У меня есть nvidia gpu, который не используется (cudatoolkit, numba была успешно установлена и импортирована)
import pyculib
Traceback (most recent call last):
File "<ipython-input-17-8322ab764e57>", line 1, in <module>
import pyculib
File "C:\ProgramData\Anaconda3\lib\site-packages\pyculib\__init__.py", line 49, in <module>
from . import blas, sparse, fft, rand, sorting
File "C:\ProgramData\Anaconda3\lib\site-packages\pyculib\sparse\__init__.py", line 2, in <module>
from .api import *
File "C:\ProgramData\Anaconda3\lib\site-packages\pyculib\sparse\api.py", line 6, in <module>
from .binding import (cuSparse, CUSPARSE_INDEX_BASE_ZERO,
File "C:\ProgramData\Anaconda3\lib\site-packages\pyculib\sparse\binding.py", line 1307, in <module>
cuSparse = _init_cuSparse()
File "C:\ProgramData\Anaconda3\lib\site-packages\pyculib\sparse\binding.py", line 1292, in _init_cuSparse
name, func = _init_api_function(k, v)
File "C:\ProgramData\Anaconda3\lib\site-packages\pyculib\sparse\binding.py", line 1237, in _init_api_function
lib = libcusparse()
File "C:\ProgramData\Anaconda3\lib\site-packages\pyculib\utils\libutils.py", line 25, in __new__
inst._initialize()
File "C:\ProgramData\Anaconda3\lib\site-packages\pyculib\utils\libutils.py", line 34, in _initialize
fn = getattr(self.dll, name)
File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py", line 377, in __getattr__
func = self.__getitem__(name)
File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py", line 382, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'cusparseCaxpyi_v2' not found
Установка Conda выдала следующую ошибку:
(base) C:\WINDOWS\system32>conda install -c numba pyculib
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining python=3.7: 100%|██████████████████████████████████████████████████████████████| 3/3 [00:17<00:00, 5.68s/it]\failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pyculib -> python[version='2.7.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0|3.4.*']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==11.0=0
Your installed CUDA driver is: 11.0