编译nervernagpu
来源:互联网 发布:seo技术可以自学吗 编辑:程序博客网 时间:2024/06/14 15:48
安装好numpy后,编译nervernagpu出现了下面的错误
bpl-subset/bpl_subset/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> ^compilation terminated.error: command 'x86_64-linux-gnu-gcc' failed with exit status 1----------------------------------------Cleaning up...Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_hhb/pycuda/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-KUqgua-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_hhb/pycudaStoring debug log for failure in /home/hhb/.pip/pip.logmake: *** [.python_install_required] Error 1
解决方法:
sudo apt-get install python-dev
参考:
https://stackoverflow.com/questions/19810940/ubuntu-linking-boost-python-fatal-error-pyconfig-cannot-be-found
https://stackoverflow.com/questions/28675357/fatal-error-pyconfig-h-no-such-file-or-directory
make doc出现的错误和解决方法
Extension error:Could not import extension sphinxcontrib.napoleon (exception: No module named sphinxcontrib.napoleon)
修改
conf.py
api.rst conf.py generated index.rst quick_start.rst _statichhb@lambda:~/work/lab/nervanagpu/doc/source$ pwd/home/hhb/work/lab/nervanagpu/doc/source
33 #extensions = [ 34 # 'sphinx.ext.autodoc', 35 # 'sphinx.ext.autosummary', 36 # 'sphinxcontrib.napoleon', 37 # 'sphinx.ext.doctest', 38 # 'sphinx.ext.intersphinx', 39 # 'sphinx.ext.todo', 40 # 'sphinx.ext.coverage', 41 # 'sphinx.ext.mathjax', 42 # 'sphinx.ext.ifconfig', 43 # 'sphinx.ext.viewcode', 44 #]修改为:46 # modified by haohaibo 47 extensions = [ 48 'sphinx.ext.autodoc', 49 'sphinx.ext.autosummary', 50 'sphinx.ext.napoleon', 51 'sphinx.ext.doctest', 52 'sphinx.ext.intersphinx', 53 'sphinx.ext.todo', 54 'sphinx.ext.coverage', 55 'sphinx.ext.mathjax', 56 'sphinx.ext.ifconfig', 57 'sphinx.ext.viewcode', 58 ]
参考:
It looks like this could be an issue with the move to sphinx 1.3 and the change from sphinxcontrib.napoleon to sphinx.ext.napoleon. Can anyone else verify that a modification to conf.py alleviates this error?
https://github.com/rtfd/readthedocs.org/issues/1164
0 0
- 编译nervernagpu
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译
- 编译?
- Java 调用 Javascript 函数的范例
- Oracle中的进制转换
- ios即时通讯客户端开发之-mac上安装MySQL
- 使用TO_CHAR显示系统的SCN值
- ajax请求中文乱码
- 编译nervernagpu
- ORA-16433 The database…
- Oracle数据库event事件与dump文件…
- 产品心理学(1)
- 使用vncviewer连接CENTOS 连…
- 我的GIS入门学习之路(二)
- AUD: Audit Commit&nbsp…
- cannot restore segment…
- 腾讯云服务器Nginx+php+mysql环境搭建