Open mariobecerra opened 4 years ago
Python cannot fine the ArrayFire shared library. You can try to define the AF_PATH environment variable or add the ArrayFire library path in LD_LIBRARY_PATH.
I tried the first option. I added export AF_PATH="/opt/arrayfire/"
in my bashrc
file and sourced it. However, if I try to import the arrayfire
package in Python I get the same error. I'm not sure exactly how to tell Python to use that variable. Any ideas?
Sorry about this, I'm really bad at doing all this environment variables and shared libraries stuff.
Try setting LD_LIBRARY_PATH to the location of the libafcpu.so. so in your case export LD_LIBRARY_PATH=/opt/arrayfire/lib64:$LD_LIBRARY_PATH
Hi.
Is there a guide on how to direct the Arrayfire installation to an Anaconda environment? I saw a couple of issues here, but they were based on Windows and Mac OS. I'm working with Ubuntu 19.10.
If I try to import Arrayfire in Python I get the following:
You can see that it's trying to look for Arrayfire in the
anaconda3
folder, and it is obviously failing because my Arrayfire installation is in/opt/arrayfire/
.Any pointers to how I can fix this?