Giter Club home page Giter Club logo

warp-ctc-pytorch's People

Contributors

stickcui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

warp-ctc-pytorch's Issues

error in python3 setup.py install

I'm using torch 0.4.0 and python 3.6
getting this stack trace when running python3 setup.py install command:::

running install
running bdist_egg
running egg_info
creating warpctc.egg-info
writing warpctc.egg-info/PKG-INFO
writing dependency_links to warpctc.egg-info/dependency_links.txt
writing requirements to warpctc.egg-info/requires.txt
writing top-level names to warpctc.egg-info/top_level.txt
writing manifest file 'warpctc.egg-info/SOURCES.txt'
reading manifest file 'warpctc.egg-info/SOURCES.txt'
writing manifest file 'warpctc.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/warpctc
copying warpctc/init.py -> build/lib.linux-x86_64-3.6/warpctc
copying warpctc/warp_ctc.py -> build/lib.linux-x86_64-3.6/warpctc
running build_ext
building 'warpctc._warp_ctc' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/warpctc
creating build/temp.linux-x86_64-3.6/warpctc/src
creating build/temp.linux-x86_64-3.6/warpctc/src/cpu
creating build/temp.linux-x86_64-3.6/warpctc/src/cuda
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWITH_CUDA -DPYTORCH_VER_0_4 -Iwarpctc/core/include -Iwarpctc/src -I/home/rajeev/environments/ds3/lib/python3.6/site-packages/torch/lib/include -I/home/rajeev/environments/ds3/lib/python3.6/site-packages/torch/lib/include/TH -I/home/rajeev/environments/ds3/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/home/rajeev/environments/ds3/include -I/usr/include/python3.6m -c warpctc/src/version.cpp -o build/temp.linux-x86_64-3.6/warpctc/src/version.o -std=c++11 -fPIC -DTORCH_EXTENSION_NAME=warpctc._warp_ctc
In file included from warpctc/src/cpu/version.h:4:0,
from warpctc/src/version.cpp:4:
/home/rajeev/environments/ds3/lib/python3.6/site-packages/torch/lib/include/torch/torch.h:3:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Any Help on this ??

运行sh make.sh install 报错

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DWITH_CUDA -DPYTORCH_VER_0_4 -Iwarpctc/core/include -Iwarpctc/src -I/usr/lib64/python2.7/site-packages/torch/lib/include -I/usr/lib64/python2.7/site-packages/torch/lib/include/TH -I/usr/lib64/python2.7/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python2.7 -c warpctc/src/cpu/cpu_ctc.cpp -o build/temp.linux-x86_64-2.7/warpctc/src/cpu/cpu_ctc.o -std=c++11 -fPIC -DTORCH_EXTENSION_NAME=warp_ctc -D_GLIBCXX_USE_CXX11_ABI=0
/usr/local/cuda/bin/nvcc -DWITH_CUDA -DPYTORCH_VER_0_4 -Iwarpctc/core/include -Iwarpctc/src -I/usr/lib64/python2.7/site-packages/torch/lib/include -I/usr/lib64/python2.7/site-packages/torch/lib/include/TH -I/usr/lib64/python2.7/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python2.7 -c warpctc/src/cuda/gpu_ctc.cu -o build/temp.linux-x86_64-2.7/warpctc/src/cuda/gpu_ctc.o -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS
_ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -Wno-deprecated-gpu-targets -DTORCH_EXTENSION_NAME=_warp_ctc -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' -std=c++11
unable to execute /usr/local/cuda/bin/nvcc: No such file or directory
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1
请问如何解决,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.