1、安装python
编辑器使用pycharm
2、python安装第三方插件
selenium:尝试pip install --user selenium 提示Download error on https://pypi.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAI]……
怀疑是内网无法连接该网站下载,尝试换源:pip install -i https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ selenium仍旧提示ERROR: Could not find a version that satisfies the requirement selenium (from versions: none)
再次换源pip install --index https://mirrors.ustc.edu.cn/pypi/web/simple/ selenium
下载成功
pandas
pip install openpyxl报错:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001C0CEFB9400>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')': /packages/7b/60/9afac4fd6feee0ac09339de4101ee452ea643d26e9ce44c7708a0023f503/openpyxl-3.0.10-py2.py3-none-any.whl
换下载源:
pip install -i https://mirrors.bfsu.edu.cn/pypi/web/simple/openpyxl
报错:
ERROR: You must give at least one requirement to install (see "pip help install")
原因:simple/后加空格再跟包名