开发者

How to specify the bash environment to use the Numeric module for Python?

I am trying to manually install the (now deprecated but I need it) Numeric module for python. I use Mandriva 2010. I have downloaded Numeric 24.2, used:

python setup.py build
python setup.py install --prefix=/other/directory

So now, in /other/directory, I have the following directories:

./include/python2.6/Numeric/
./lib/python2.6/site-packages/Numeric/

All I need now is to configure correctly my PYTHONPATH and/or LD_LIBRARY_PATH to make it find my Numeric module. Problem is I just can't figure it. I have tried some common values, but have always received the same 开发者_开发问答negative answer:

import Numeric
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Numeric

What are the correct parameters? Am I missing something?


$PYTHONPATH should include the entry /other/directory/lib/python2.6/site-packages, and if a native library was installed in /other/directory/lib, then $LD_LIBRARY_PATH should include /other/directory/lib.


I finally managed to find somebody to sorted it right!

To use Numeric, you have to add /other/directory/lib/python2.6/site-packages/Numeric to $PYTHONPATH.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜