我有以下非常小的代码:
from multiprocessing import Pipe
End1, End2 = Pipe ()
产生了以下错误:
Traceback (most recent call last):
File "/storage/sdcard0/MyMovie/.run/.last_tmp.py", line 3, in <module>
End1, End2 = Pipe ()
File "/storage/sdcard0/com.hipipal.qpyplus/lib/python3.2/site-packages/multiprocessing/__init__.py", line 106, in Pipe
return Pipe(duplex)
File "/storage/sdcard0/com.hipipal.qpyplus/lib/python3.2/site-packages/multiprocessing/connection.py", line 188, in Pipe
s1, s2 = socket.socketpair()
File "/storage/sdcard0/com.hipipal.qpyplus/lib/python3.2/site-packages/socket.py", line 225, in socketpair
a, b = _socket.socketpair(family, type, proto)
socket.error: [Errno 95] Operation not supported on transport endpoint
我调整了最后一个错误,但找不到任何有用的东西。我已经看到它在文档中使用的就是这样,所以我不能看到它是我写的,因为它只有2行。这可能是一个&#34;内部问题&#34;? 我使用Python 3.2解释器,使用Python 3.2
谢谢
答案 0 :(得分:1)
硬件是否支持多处理?我不确定,但可能是问题。