import multiprocessing error

22 views
Skip to first unread message

Zhongying Huang

unread,
Mar 15, 2016, 11:07:24 PM3/15/16
to sae-python

就是简单的在自己的py文件中使用了

from multiprocessing import Pool


提示错误是:
cannot import name _args_from_interpreter_flags
Request Method:GET
Request URL:http://dsae.sinaapp.com/mkvdb/main
Django Version:1.5
Exception Type:ImportError
Exception Value:
cannot import name _args_from_interpreter_flags
Exception Location:/usr/local/sae/python/lib/python2.7/multiprocessing/util.py in <module>, line 41
Python Executable:/usr/bin/python
Python Version:2.7.9
Python Path:
['/data1/www/htdocs/249/dsae',
 '/data1/www/htdocs/249/dsae',
 '/data1/www/htdocs/249/dsae',
 '/data1/www/htdocs/249/dsae/2/site-packages',
 '/data1/www/htdocs/249/dsae/2/utils',
 '/data1/www/htdocs/249/dsae/2/runner2',
 '/data1/www/htdocs/249/dsae/2/runner',
 '/data1/www/htdocs/249/dsae/2/Train',
 '/data1/www/htdocs/249/dsae/2/Weixin',
 '/data1/www/htdocs/249/dsae/2/dsae',
 '/data1/www/htdocs/249/dsae/2',
 '/usr/local/sae/python/lib/python27.zip',
 '/usr/local/sae/python/lib/python2.7',
 '/usr/local/sae/python/lib/python2.7/plat-linux2',
 '/usr/local/sae/python/lib/python2.7/lib-tk',
 '/usr/local/sae/python/lib/python2.7/lib-old',
 '/usr/local/sae/python/lib/python2.7/lib-dynload',
 '/usr/local/sae/python/3rd/django-1.5',
 '/usr/local/sae/python/3rd/MySQLdb-1.2.3',
 '/usr/local/sae/python/3rd/requests-2.7.0',
 '/usr/local/sae/python/3rd/lxml-2.3.4',
 '/usr/local/sae/python/3rd/numpy-1.6.1',
 '/usr/local/sae/python/3rd/matplotlib-1.1.1',
 '/usr/local/sae/python/lib/python2.7/site-packages']

陈峰

unread,
Mar 15, 2016, 11:12:25 PM3/15/16
to sae-p...@googlegroups.com
如果要使用multiprocessing的话,可以使用容器runtime,python runtime是不支持多进程的,见:http://www.sinacloud.com/doc/sae/docker/python-getting-started.html

--
邮件来自: SAE Python 邮件列表
发言: sae-p...@googlegroups.com
退订: sae-python+...@googlegroups.com (向此发空信即退!)

Zhongying Huang

unread,
Mar 16, 2016, 10:27:41 PM3/16/16
to sae-python, chen...@staff.sina.com.cn
谢谢指点,

在文档里面找了半天也没有提到multiprocessing的事

黄荣发

unread,
Mar 16, 2016, 10:47:53 PM3/16/16
to sae-p...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages