undetected_chromedriver 报错

来源:4-8 . cnblogs模拟登录(新增内容)

红红小尖椒

2022-03-16

File “D:\Python37\lib\multiprocessing\spawn.py”, line 136, in _check_not_importing_main
is not going to be frozen to produce an executable.’’’)
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes 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 an executable.

运行报这个错,请教一下该怎么解决,完全摸不着头脑。

写回答

1回答

springlee

2022-03-17

//img.mukewang.com/szimg/6232e2590949c2cd29900858.jpg
加这句试试

0
0

Scrapy打造搜索引擎 畅销4年的Python分布式爬虫课

带你彻底掌握Scrapy,用Django+Elasticsearch搭建搜索引擎

5796 学习 · 6290 问题

查看课程