CNN-LSTM-CTC-text-recognition icon indicating copy to clipboard operation
CNN-LSTM-CTC-text-recognition copied to clipboard

ImportError: No module named mxnet

Open qianfeihong opened this issue 7 years ago • 1 comments

I have used your version of mxnet and warpctc downloaded from your BaiduYun. I built mxnet and warpctc successfully. Also, I enabled warpctc in mxnet. However, when I run the train_lstm.py, the problem went that "import mxnet as mx" ImportError: No module named mxnet. Then I realized that i should add mxnet path in the environment. I add "export PYTHONPATH=~/mxnet/python" at the end of .bashrc. When I echo $PATH in the command line, the result shows that /home/qian/mxnet/python is successfully added. However, when i run the train_lstm.py again, the problem still existed. How can I solve this problem? Thank you!

qianfeihong avatar Apr 30 '18 18:04 qianfeihong

import mxnet as mx Traceback (most recent call last): File "", line 1, in File "mxnet/init.py", line 7, in from .base import MXNetError File "mxnet/base.py", line 43, in _LIB = _load_lib() File "mxnet/base.py", line 34, in _load_lib lib_path = libinfo.find_lib_path() File "mxnet/libinfo.py", line 36, in find_lib_path 'List of candidates:\n' + str('\n'.join(dll_path))) RuntimeError: Cannot find the files.

how can i solve this??

qianfeihong avatar May 06 '18 06:05 qianfeihong