• python e.py Traceback (most recent call last): File "e.py", line 2, in <module> from selenium import webdriver ImportError: No module named selenium


    $python e.py 

    Traceback (most recent call last):

      File "e.py", line 2, in <module>

        from selenium import webdriver

    ImportError: No module named selenium

    解决:安装selenium模块

    $ python -m pip install -U selenium

    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

    Defaulting to user installation because normal site-packages is not writeable

    Collecting selenium

      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)",)': /packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl

      Downloading selenium-3.141.0-py2.py3-none-any.whl (904 kB)

         |████████████████████████████████| 904 kB 23 kB/s 

    Requirement already satisfied, skipping upgrade: urllib3 in /Library/Python/2.7/site-packages (from selenium) (1.25.9)

    Installing collected packages: selenium

    Successfully installed selenium-3.141.0

    结束。

  • 相关阅读:
    SQL_Server_2005_字符串函数(描述及实例)
    固定在左右两侧不动的广告条 样式
    jquery 浏览器判断
    sqlserver 2005无限极分类 获取 所有子分类
    asp.net使用treeview控件,递归加载
    C++day15 学习笔记
    Win32编程day02 学习笔记
    Win32编程day04 学习笔记
    C++day16 学习笔记
    Win32编程day05 学习笔记
  • 原文地址:https://www.cnblogs.com/liusingbon/p/13374964.html
Copyright © 2020-2023  润新知