我试着用cx峎u冻结构建python3.6+selenium to.exe。当我运行.exe文件得到这个回溯。在
Traceback (most recent call last):
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 14, in run
module.run()
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run
exec(code, m.__dict__)
File "tx66.py", line 1, in <module>
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\__init__.py", line 18, in <module>
from .firefox.webdriver import WebDriver as Firefox # noqa
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 21, in <module>
import httplib as http_client
ModuleNotFoundError: No module named 'httplib'
Traceback (most recent call last):
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 19, in <module>
import http.client as http_client
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\http\__init__.py", line 1, in <module>
from enum import IntEnum
File "C:\Users\lsjws\AppData\Local\Programs\Python\Python36-32\lib\enum.py", line 2, in <module>
from types import MappingProxyType, DynamicClassAttribute
ImportError: cannot import name 'MappingProxyType'
在我的代码中,我只导入webdriver并使用chromedriver而不是firefox。在
目前没有回答
相关问题 更多 >
编程相关推荐