我没有使用Ubuntu的经验,但我想使用这个软件:http://www.bempp.org/,不幸的是它迫使我使用Ubuntu。我已经安装了Ubuntu,后来当我尝试安装该软件时。
~/Desktop/bempp$ python bempp_setup.py -b bempp_setup.cfg但我收到了这个错误。
BEM++ INSTALLATION FAILED WITH ERROR MESSAGE:
Could not find the Python runtime library in either '/usr/lib' or '/usr/lib64'. Specify its location manually by setting the 'lib' option in the 'Python' section of your configuration file.我想在处理这个错误方面得到一些帮助。我已经使用以下指南在我的系统上安装了Enthought:http://docs.enthought.com/canopyg /快速启动/install_linux.html,但是看起来我需要做一些修改,以便软件(BEM++)能够找到python库。我很困惑,不知道该怎么办。请帮帮我!
进展
因此,我可以在bempp_setup.cfg中指定python运行时库的位置,如下所示:
include_dir=/usr/include/python2.7
lib=/usr/lib/libpython2.7.so因此,这就引出了我的下一个问题,即如何找到这些文件在我的系统中的位置?
发布于 2014-07-19 23:08:37
您试图从源代码和安装构建的应用程序包括一些非Python代码,因此您可能缺少所需的依赖项。您还需要开发文件来构建连接到Python运行时或为其提供编译模块的C/C++应用程序。您可以通过运行以下命令来做到这一点:
sudo apt-get install python-all-dev
您还需要安装g++和gfortran编译器,如http://www.bempp.org/installation.html中所示。
https://askubuntu.com/questions/500045
复制相似问题