用fatal error: pyconfig.h: No such file or directory搜索了下,网上提出是CPLUS路径的问题。
但我并未用anaconda装python3.6,且在/usr/include/ 下并未找到python3.6m的文件夹,但有python2.7文件夹,且里面有pyconfig.h
针对这个问题进行查找,https://blog.youkuaiyun.com/jaket5219999/article/details/72954394?utm_source=blogxgwz9 相似问题得到解决
通过以下命令:
apt-get install libpython3.6-dev
export CPLUS_INCLUDE_PATH=/usr/include/python3.6m
pip install pycuda