Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Pycharm prompts Unresolved reference 'webdriver'

Shulou Source: shulou.com Published: 2022-06-03 05:03:16 10月01日 Update

Pycharm + selenium + python hint Unresolved reference 'webdriver' solution:

Import the selenium package in the file, and from selenium import webdriver prompts you to report an error Unresolved reference 'webdriver'. This is caused by pycharm's inability to find the selenium module.

Solution:

1. The virtual environment where the command line enters the project directory: cd D:\ pycode\ test\ venv

2. Enter the python virtual environment: Scripts\ activate

3. Execute pip install selenium and install selenium module

4. On the pycharm page, the selenium package has been installed and no error has been reported.

Tags: Tips methods modules environment commands that is files directories pages projects guides Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS vpn NVidia Shulou Tech Info Redmi