pycuda installation error: command 'gcc' failed with exit status 1
来源:互联网 发布:java设置excel单元格格式 编辑:程序博客网 时间:2024/06/03 18:14
原文:python采坑之路
Setup script exited with error: command 'gcc' failed with exit status 1
伴随出现“cuda.h” cannot be find
由于没有正确安装Python开发环境导致。
Debin/Ubuntu
- Python2
sudo apt-get install python-dev
Python3
sudo apt-get install python3-dev
可能需要libevent库sudo apt-get install libevent-dev
最后更新下开发环境sudo apt-get groupinstall 'development tools'
Centos/Fedora
sudo yum install python-devel
sudo yum install libevent-devel
easy_install gevent
或者pip install gevent
把环境更新下sudo yum install groupinstall 'development tools'
sudo apt-get groupinstall 'development tools'
不能使用
出错的地方在于没有添加cuda path,因此添加CUDApath
sudo get edit ~./bashrc
添加
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export CUDA_ROOT=/usr/local/cuda
此后Pycuda安装成功。
阅读全文
0 0
- pycuda installation error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1 解决方法
- error: command 'gcc' failed with exit status 1 的解决办法
- 【centos】 error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1 的解决办法
- centos---error: command 'gcc' failed with exit status 1
- error: command ‘gcc’ failed with exit status 1
- error: command 'gcc' failed with exit status 1
- 【centos】 error command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1
- error: command 'gcc' failed with exit status 1 的解决办法
- 【centos】 error: command 'gcc' failed with exit status 1
- 【centos】 error: command 'gcc' failed with exit status 1
- 寻找第K大的数的方法总结
- 技术分享连载(七十四)
- Win10下搭建汇编语言开发环境(利用DOSBOX和MASM32)
- 171204之条件查询总结
- Ubuntu虚拟机打不开
- pycuda installation error: command 'gcc' failed with exit status 1
- Green Marl 入门 Part2:编译器概要
- Gentoo 安装配置Nginx+PHP
- 直线分割平面
- 使用Spring的@Scheduled实现定时任务
- navicat premium2003- can't connect to mysql on '127.0.0.1'(1038)
- JavaScript let的理解
- x264的一些参数设置对编码效率的影响
- 如何优雅地使用Sublime Text