V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  wangfeng3769  ›  全部回复第 42 页 / 共 53 页
回复总数  1049
1 ... 38  39  40  41  42  43  44  45  46  47 ... 53  
2014-08-04 16:34:09 +08:00
回复了 wangfeng3769 创建的主题 问与答 python 的 multiprocessing
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\Python27\lib\multiprocessing\forking.py", line 380, in main
You have to input a complete URL
prepare(preparation_data)
Traceback (most recent call last):
File "D:\Python27\lib\multiprocessing\forking.py", line 495, in prepare
File "<string>", line 1, in <module>
'__parents_main__', file, path_name, etc
File "D:\Python27\lib\multiprocessing\forking.py", line 380, in main
File "D:\sworkspace\weixinspider.py", line 160, in <module>
prepare(preparation_data)
File "D:\Python27\lib\multiprocessing\forking.py", line 495, in prepare
main(url)
File "D:\sworkspace\weixinspider.py", line 147, in main
'__parents_main__', file, path_name, etc
File "D:\sworkspace\weixinspider.py", line 160, in <module>
w.start()
File "D:\Python27\lib\multiprocessing\process.py", line 130, in start
main(url)
File "D:\sworkspace\weixinspider.py", line 147, in main
self._popen = Popen(self)
File "D:\Python27\lib\multiprocessing\forking.py", line 258, in __init__
w.start()
File "D:\Python27\lib\multiprocessing\process.py", line 130, in start
cmd = get_command_line() + [rhandle]
self._popen = Popen(self)
File "D:\Python27\lib\multiprocessing\forking.py", line 358, in get_command_li
ne
File "D:\Python27\lib\multiprocessing\forking.py", line 258, in __init__
is not going to be frozen to produce a Windows executable.''')
RuntimeError: cmd = get_command_line() + [rhandle]

File "D:\Python27\lib\multiprocessing\forking.py", line 358, in get_command_li
ne
Attempt to start a new process before the current process
has finished its bootstrapping phase.

This probably means that you are on Windows and you have
forgotten to use the proper idiom in the main module:

if __name__ == '__main__':
freeze_support()
...

The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce a Windows executable.
is not going to be frozen to produce a Windows executable.''')
RuntimeError:
Attempt to start a new process before the current process
has finished its bootstrapping phase.

This probably means that you are on Windows and you have
forgotten to use the proper idiom in the main module:

if __name__ == '__main__':
freeze_support()
...

The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce a Windows executable.
2014-08-04 15:00:14 +08:00
回复了 wangfeng3769 创建的主题 问与答 python 的 multiprocessing
multiprocessing.freeze_support()
# lock = multiprocessing.Lock()
w = multiprocessing.Process(target=work, args=(url, ))
nw = multiprocessing.Process(target=download, args=())
w.start()
nw.start()
w.join()
nw.join()
有坚持,有毅力。
2014-08-01 14:20:06 +08:00
回复了 niuer 创建的主题 分享发现 喜获融资数千万美元 七牛云存储来 V2EX 送福利
2014-08-01 10:03:57 +08:00
回复了 wangfeng3769 创建的主题 问与答 局域网封了 github,怎样才能正常使用 github
各位都很牛逼呀。
2014-07-31 21:39:55 +08:00
回复了 wangfeng3769 创建的主题 问与答 局域网封了 github,怎样才能正常使用 github
Ubuntu有事 xp 没事
2014-07-31 16:38:00 +08:00
回复了 wangfeng3769 创建的主题 问与答 局域网封了 github,怎样才能正常使用 github
局域网是不能穿越的吗?
@tankb52 server版的用过,命令行也不错,但是desktop版的就不好说了。
@tankb52 重装了,界面太脆弱了.
@tankb52
成功了
2014-07-27 17:37:45 +08:00
回复了 ipalomahr 创建的主题 酷工作 招聘:Android 研发工程师
如果可以兼职或者远程就好了。pythoner 飘过
2014-07-27 15:22:56 +08:00
回复了 trapexit 创建的主题 酷工作 [成都]知道创宇招聘 Python 研发工程师和 QA 工程师
远程或者兼职可以吗
2014-07-27 15:16:51 +08:00
回复了 razrlele 创建的主题 问与答 有人拿 Elmentary OS 当日常工作系统么?
ubuntu14.04 很不错了。
@tankb52
gnome 我想我能搞定的谢谢 。我在试试 不行的话 给你发信息。
2014-07-27 14:33:13 +08:00
回复了 wangfeng3769 创建的主题 Ubuntu ubuntu14.04 上的面板上的网络图标被删除了,怎么恢复呀
@Ge4Los
有个备用系统,现在正在将备用系统的文件覆盖原来系统的文件,ubuntu太脆弱了 ,删掉一个图标就没法办,所以吗还是弄一个备用系统的好,右边面板的图标全部删除了。
@BinbinWang

I want to try how to solve a problem,So I tried all the ubuntu release version
@yylzcom 装了不过没反应呀。
2014-07-27 09:48:22 +08:00
回复了 thedevil5032 创建的主题 Sydney 下周末的 PyCon Australia 有人一起去吗?
那就去吧 需要邀请吧
@tankb52
有其他办法吗
1 ... 38  39  40  41  42  43  44  45  46  47 ... 53  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5575 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 45ms · UTC 02:36 · PVG 10:36 · LAX 19:36 · JFK 22:36
Developed with CodeLauncher
♥ Do have faith in what you're doing.