环境 win10 + python3.8
通过selenium 库打开chrome浏览器时报错如下:
Traceback (most recent call last):
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\common\service.py”, line 71, in start
self.process = subprocess.Popen(cmd, env=self.env,
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py”, line 804, in init
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py”, line 1169, in _get_handles
c2pwrite = msvcrt.get_osfhandle(self._get_devnull())
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.py”, line 952, in _get_devnull
self._devnull = os.open(os.devnull, os.O_RDWR)
FileNotFoundError: [Errno 2] No such file or directory: ‘nul’
During handling of the above excep