-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS: pip install kaldifeat
can't find MKL in a conda env (fix: set LDFLAGS)
#10
Comments
Thanks, will look into it. |
I encounter this problem on Windows too. And add the
I have to this to make it works. I think it may be due to lack of config that let cmakelist.txt find MKL of Conda. |
kaldifeat depends on PyTorch, which is using MKL. kaldifeat does not use MKL directly, so there are no configurations for MKL in the CMakeLists.txt. I think PyTorch does not configure MKL correctly. |
What is the output of readelf -d /home/meixu/mambaforge/envs/icefall/lib/python3.9/site-package/torch/_C.*.so ? |
I have the same problem in Ubuntu 20.04 using pip in my conda env. The log is:
And the output of readelf is:
|
Can you find the following files in your conda environment?
If yes, could you post the output ? |
By the way, I found a similar issue here. But I don't know how to manually set the link. |
The output is:
|
Could you use export LIBRARY_PATH=/data/miniconda3/envs/k2/lib:$LIBRARY_PATH and run Caution: It is |
@JaheimLee
|
I met another error:
And the output of
My native cuda version is 11.2, but pytorch binding is cuda 11.3. Is that going to be a problem? |
Could you use By the way, you can use |
For the above link error, could you have a look at |
Conda install works well. Here is all pip logs:
|
Issue: when running
pip install kaldifeat
, I'm getting the error that it can't find MKL libraries to link against.Solution: manually specify the linker argument in an env var.
Perhaps this can be somehow fixed in CMake; but if that's too much hassle, I at least wanted to leave the solution here.
The text was updated successfully, but these errors were encountered: