Skip to content
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

安装warp-ctc出问题 #8

Closed
Lemonyue opened this issue Oct 12, 2018 · 13 comments
Closed

安装warp-ctc出问题 #8

Lemonyue opened this issue Oct 12, 2018 · 13 comments

Comments

@Lemonyue
Copy link

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
Copy link

你是安装的时候出错吗

@haneSier
Copy link

还是使用

@haneSier
Copy link

推荐用Ubuntu 16.04系统

@Lemonyue
Copy link
Author

是的,难道跟cuda有关?

@haneSier
Copy link

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

@beimingmaster
Copy link

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
Copy link

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

@haneSier
Copy link

haneSier commented Dec 6, 2018

你是Ubuntu 什么版本

@huazai-1994
Copy link

@haneSier 16.04

@tbfly
Copy link

tbfly commented Jan 27, 2019

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
Copy link
Owner

Good job

@sunzjz
Copy link

sunzjz commented Mar 4, 2019

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants