环境变量配置加C:\Python27\Scripts
1.安装pip
下载pip
https://pypi.python.org/pypi/pip#downloads
下载source 类型的包
将pip 解压包到C:\Python27 ,进入cmd ,进入pip此目录,输入命令
python setup.py install
2.安装 setuptools
https://pypi.python.org/pypi/setuptools#downloads
下载source 类型的包
将 解压包到C:\Python27 ,进入cmd ,进入setuptools此目录,输入命令
python setup.py install
3.下载selenium
https://pypi.python.org/pypi/selenium
我下载的是selenium-3.13.0.tar.gz
将解压包放在C:\Python27\Lib\site-packages\selenium-3.13.0
进入cmd ,进入setuptools此目录,输入命令setup.py install
另一种方法:
cmd开启控制台,cd命令进入:Python2\Scripts,输入pip install selenium 或者 pip install –U selenium后回车,等待下载并安装,如果无错误 即安装成功。
说明:如果网络被墙或者非连网状态,那么上述安装无效,必须手动安装。
建议先装selenium ,再装Jetbrain , 我遇到了问题 如下
C:\Python27\lib\site-packages\pip-18.0-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecurePlatformWarning
卸载了Jetbrain ,在装就没有报错了