Bootstrap

Python Selenium 报错 ImportError: sys.meta_path is None, Python is likely shutting down 解决办法

Exception ignored in: <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x00000146BF1FD438>>
Traceback (most recent call last):
  File "C:\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 173, in __del__
  File "C:\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 149, in stop
  File "C:\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 120, in send_remote_shutdown_command
 ImportError: sys.meta_path is None, Python is likely shutting down

把析构函数中的 driver.close() 换成 driver.quit()


ImportError: sys.meta_path is None, Python is likely shutting down

https://stackoverflow.com/questions/41480148/importerror-sys-meta-path-is-none-python-is-likely-shutting-down

python error:ImportError: sys.meta_path is None, Python is likely shutting down

https://stackoverflow.com/questions/41206947/python-errorimporterror-sys-meta-path-is-none-python-is-likely-shutting-down


;