开发者

Compiling numpy with external libraries for super computer

I am compiling numpy and get an error so I think I need to include external libraries. The atlas installation is in /usr/lib64/atlas. Since I don't have access to root I have everything installed in my home directory including python 2.6.7.

I am assum开发者_如何学Going I change the site.cfg file but do I only need to add the /usr/lib64/atlas to the libraries directory.

They also have ptcblas and ptf77blas are these supported in numpy??


You can probably get this to work by setting CFLAGS and LDFLAGS before you run pip install numpy so that it uses your own personal library directory.

CFLAGS='-l/home/me/include'
LDFLAGS='-L/home/me/lib'

If that doesn't work, find a machine (or a VM) where you can build tools and access /usr/lib, then follow the script in this question Compiling Python 2.6.6 and need for external packages wxPython, setuptools, etc... in Ubuntu to build your own portable Python distro including the libraries you need. Just delete any parts of the script that build modules which you will never use, and add any additional modules that you need. If you add modules, make sure that you run the strace checks at the end.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜