Installation of pytorch1.0 encountered the following problems:
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "xxxxx/site-packages/torch/__init__.py", line 84, in <module>
from torch._C import *
ImportError: xxxxx/site-packages/torch/lib/libmkldnn.so.0: undefined symbol: cblas_sgemm_alloc
Someone on the Internet has solved this problem by opening ~ /. Bashrc and finding the declaration of such a variable:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Then comment it out and the problem is solved.
But I don’t have such a line when I open the bashrc file
after many searches, I have solved this problem as follows:
conda install -c anaconda mkl
This line of code, and then I import torch succeeded!
Hope to help you!
Read More:
- Error: l6218e: undefined symbol appears when keil calls lib
- Solutions to the problem of “symbol lookup error xxxxx, undefined symbol”
- chattr: symbol lookup error: chattr: undefined symbol: fsetproject
- Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll. error appears after installing pytorch
- An error occurred when installing pytorch version 1.7 GPU
- TensorFlow: InternalError: Blas SGEMM launch failed
- Failed building wheel for twisted solution appears after installing scratch
- Python calls C to generate so library and reports an error: undefined symbol
- Using pop-up window and I18N, error in render: “typeerror: cannot read property” appears_ T ‘of undefined’ solution
- Initctl: Job failed to start appears when installing VMware-tools
- [Problem] When installing the installation package, it appears: ipersistfile save failed with error code “0×80070005
- Cannot read property ‘this compilation’ of undefined appears in copy webpack plugin
- When installing oracle12c, the problem of “unable to check whether the specified location is on CFS” appears
- Failed to dlsym make_device: undefined symbol: make_device
- dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
- After installing MySQL again under Linux, the solution of ‘MySQL module failed to start’ appears
- CUBLAS_STATUS_ALLOC_FAILED
- runtime error program:c :\windows\ explorer.exe (appears after installing the win8 security update) why?
- Error LNK2019: unresolved external symbol_ Main the symbol is in the function___ Tmaincrtstartup
- Vs error unresolved external symbol_ Main, the symbol in the function “int”__ cdecl invoke_ main