开发者

Python: installing multiprocessing

开发者 https://www.devze.com 2022-12-23 01:41 出处:网络
I need to import the multiprocessing module in Python 2.5. I\'ve followed 开发者_开发问答the instructions here exactly: http://code.google.com/p/python-multiprocessing/wiki/Install

I need to import the multiprocessing module in Python 2.5.

I've followed 开发者_开发问答the instructions here exactly: http://code.google.com/p/python-multiprocessing/wiki/Install

make and make test run without errors. I've also edited $PYTHONPATH to include the directory where the package is installed.

But 'import multiprocessing' still says: "ImportError: no module named multiprocessing".

What am I doing wrong? Is there some step missing from these instructions? I haven't installed a Python module before.


Navigate to the directory containing the package then type:

python setup.py install

This info was contained in the INSTALL.txt file.

http://code.google.com/p/python-multiprocessing/source/browse/trunk/INSTALL.txt


perhaps you can try:

import sys
sys.path.append('/path/to/processingdotpylibs/')
import processing
0

精彩评论

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