❶ Pycharm配置python編譯器
安裝了python且通過pip安裝selenium,打開Pycharm 輸入 from selenium import webdriver報錯,此時,需配置Pycharm(2019)使用的編譯器為自己安裝的python 方法:File->Settings->Project:xxx ->Project Interpreter (1)選擇Show All...(2)點擊 +,選擇Existing environment,瀏覽選擇已安裝的python