python setup.py install 出错_安装到 python setup.py install 的时候出错了, 前面的步骤一切正常...

which: no nvcc in (/app/anaconda3/envs/chineseocr/bin:/app/anaconda3/condabin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/home/mcbadm/.local/bin:/home/mcbadm/bin)

Torch was not built with CUDA support, not building warp-ctc GPU extensions.

running install

running bdist_egg

running egg_info

writing warpctc_pytorch.egg-info/PKG-INFO

writing dependency_links to warpctc_pytorch.egg-info/dependency_links.txt

writing top-level names to warpctc_pytorch.egg-info/top_level.txt

reading manifest file 'warpctc_pytorch.egg-info/SOURCES.txt'

writing manifest file 'warpctc_pytorch.egg-info/SOURCES.txt'

installing library code to build/bdist.linux-x86_64/egg

running install_lib

running build_py

running build_ext

/app/anaconda3/envs/chineseocr/lib/python3.6/site-packages/torch/utils/cpp_extension.py:191: UserWarning:

!! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Your compiler (g++ 4.8.5) may be ABI-incompatible with PyTorch!

Please use a compiler that is ABI-compatible with GCC 4.9 and above.

See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.

See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6

for instructions on how to install GCC 4.9 or higher.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!! WARNING !!

warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))

building 'warpctc_pytorch._warp_ctc' extension

gcc -pthread -B /home/ubuntu/anaconda3/envs/chineseocr/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mcbadm/warp-ctc/include -I/app/anaconda3/envs/chineseocr/lib/python3.6/site-packages/torch/lib/include -I/app/anaconda3/envs/chineseocr/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -I/app/anaconda3/envs/chineseocr/lib/python3.6/site-packages/torch/lib/include/TH -I/app/anaconda3/envs/chineseocr/lib/python3.6/site-packages/torch/lib/include/THC -I/app/anaconda3/envs/chineseocr/include/python3.6m -c src/binding.cpp -o build/temp.linux-x86_64-3.6/src/binding.o -std=c++11 -fPIC -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_warp_ctc -D_GLIBCXX_USE_CXX11_ABI=0

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]

g++ -pthread -shared -B /home/ubuntu/anaconda3/envs/chineseocr/compiler_compat -L/home/ubuntu/anaconda3/envs/chineseocr/lib -Wl,-rpath=/home/ubuntu/anaconda3/envs/chineseocr/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/src/binding.o -L/home/mcbadm/warp-ctc/build -lwarpctc -o build/lib.linux-x86_64-3.6/warpctc_pytorch/_warp_ctc.cpython-36m-x86_64-linux-gnu.so -Wl,-rpath,/home/mcbadm/warp-ctc/build

/usr/bin/ld: this linker was not configured to use sysroots

collect2: error: ld returned 1 exit status

error: command 'g++' failed with exit status 1

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值