arrayfire / arrayfire-python

Python bindings for ArrayFire: A general purpose GPU library.

Home Page:https://arrayfire.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RuntimeError: Could not load any ArrayFire libraries.

ysnan opened this issue · comments

commented

I tried to install the arrayfire in my Linux workstation via pip install arrayfire. It successfully installed but was not able to import. When I tried to use import arrayfire, it showed:

Traceback (most recent call last):
File "", line 1, in
File "/home/ysnan/anaconda3/lib/python3.6/site-packages/arrayfire/init.py", line 56, in
from .library import *
File "/home/ysnan/anaconda3/lib/python3.6/site-packages/arrayfire/library.py", line 646, in
backend = _clibrary()
File "/home/ysnan/anaconda3/lib/python3.6/site-packages/arrayfire/library.py", line 622, in init
raise RuntimeError("Could not load any ArrayFire libraries.\n" + more_info_str)
RuntimeError: Could not load any ArrayFire libraries.
Please look at https://github.com/arrayfire/arrayfire-python/wiki for more information.

It failed for both python 3.6 and python 2.7. Could you please help me check it out. Thank you!

Which version of ArrayFire (not python wrapper) do you have installed?

commented

Thank you for your prompt reply. It is my fault not to notice I need to install ArrayFire in advance😭 I will try it and if any problem occur I will ask again.

commented

Sorry to bother you again. I downloaded the ArrayFire binary file and installed it. But how can I link the ArrayFire with python wrapper? The instruction link in Post Installation section in README.md file has been missing. Thank you!