Sierkinhane / CRNN_Chinese_Characters_Rec

(CRNN) Chinese Characters Recognition.
1.83k stars 541 forks source link

安装warp-ctc出问题 #8

Closed Lemonyue closed 5 years ago

Lemonyue commented 6 years ago

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.

haneSier commented 6 years ago

你是安装的时候出错吗

haneSier commented 6 years ago

还是使用

haneSier commented 6 years ago

推荐用Ubuntu 16.04系统

Lemonyue commented 6 years ago

是的,难道跟cuda有关?

haneSier commented 6 years ago

编译试下加sudo. 我的是pytorch-gpu cuda9.0

Sierkinhane commented 6 years ago

@Lemonyue https://github.com/SeanNaren/Warp-ctc/issues可以参考这里提的issue解决方案

beimingmaster commented 6 years ago

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即可。

huazai-1994 commented 5 years ago

@Sierkinhane default编译出错,不知道怎么弄。请问你知道哪里出了问题吗?

haneSier commented 5 years ago

你是Ubuntu 什么版本

huazai-1994 commented 5 years ago

@haneSier 16.04

tbfly commented 5 years ago

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

Sierkinhane commented 5 years ago

Good job

sunzjz commented 5 years ago

@Sierkinhane default编译出错,不知道怎么弄。请问你知道哪里出了问题吗?

我也遇到同样的问题,请问你解决了吗,非常感谢