1.Chromedriver版本問(wèn)題
報(bào)錯(cuò):
session not created: This version of ChromeDriver only supports Chrome version 84
解決:
下載與Chrome一致的Chromedriver版本
ChromeDriver下載地址:http://npm.taobao.org/mirrors/chromedriver/
2.127.0.0.1與192.168.1.1有什么區(qū)別
127.0.0.1 是本機(jī)地址 相當(dāng)于 localhost
192.168.1.1 是網(wǎng)絡(luò)ip地址
3.pip版本問(wèn)題
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the '/usr/local/opt/python@3.8/bin/python3.8 -m pip install --upgrade pip' command.
根據(jù)提示對(duì)pip進(jìn)行升級(jí)
/usr/local/opt/python@3.8/bin/python3.8 -m pip install --upgrade pip
但是又報(bào)錯(cuò)了
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'RECORD'
Consider using the `--user` option or check the permissions.
提示說(shuō)是沒(méi)有權(quán)限舷蒲,加上sudo 輸入密碼就可以升級(jí)成功了
sudo /usr/local/opt/python@3.8/bin/python3.8 -m pip install --upgrade pip
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting pip
Downloading http://mirrors.aliyun.com/pypi/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d396a433/pip-20.2.4-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 4.2 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-20.2.4