Closed Lemonyue closed 5 years ago
你是安装的时候出错吗
还是使用
推荐用Ubuntu 16.04系统
是的,难道跟cuda有关?
编译试下加sudo. 我的是pytorch-gpu cuda9.0
yue@yue-Vostro-3668:/crnn_chinese_characters_rec$ cd warp-ctc/pytorch_binding yue@yue-Vostro-3668:/crnn_chinese_characters_rec/warp-ctc/pytorch_binding$ python setup.py install Torch was not built with CUDA support, not building warp-ctc GPU extensions. generating build/warpctc_pytorch/_warp_ctc/warp_ctc.c (already up-to-date) not modified: 'build/warpctc_pytorch/_warp_ctc/warp_ctc.c' running install Checking .pth file support in /usr/local/lib/python3.5/dist-packages/ error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/test-easy-install-8801.pth'
The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:
/usr/local/lib/python3.5/dist-packages/
Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable.
For information on other options, you may wish to consult the documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
“Permission denied” 这种错误一般就是权限问题,命令加sudo即可。
@Sierkinhane 编译出错,不知道怎么弄。请问你知道哪里出了问题吗?
你是Ubuntu 什么版本
@haneSier 16.04
18.04 ubuntu system, can replace by: https://github.com/jpuigcerver/pytorch-baidu-ctc.
https://pypi.org/project/torch-baidu-ctc/ just: pip3 install torch-baidu-ctc
Good job
@Sierkinhane 编译出错,不知道怎么弄。请问你知道哪里出了问题吗?
我也遇到同样的问题,请问你解决了吗,非常感谢
yue@yue-Vostro-3668:~/crnn_chinese_characters_rec$ cd warp-ctc/pytorch_binding yue@yue-Vostro-3668:~/crnn_chinese_characters_rec/warp-ctc/pytorch_binding$ python setup.py install Torch was not built with CUDA support, not building warp-ctc GPU extensions. generating build/warpctc_pytorch/_warp_ctc/warp_ctc.c (already up-to-date) not modified: 'build/warpctc_pytorch/_warp_ctc/warp_ctc.c' running install Checking .pth file support in /usr/local/lib/python3.5/dist-packages/ error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the installation directory:
The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:
Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable.
For information on other options, you may wish to consult the documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.