Home >Backend Development >Python Tutorial >Why Can't PyCharm Find My Installed Modules?
PyCharm Module Recognition Issues: Resolved
Despite installing the 'requests' module using pip, PyCharm fails to detect it, resulting in an 'import requests' error. The problem stems from a missing configuration in PyCharm's interpreter settings.
To rectify this issue, manually add the site-packages directory to PyCharm's interpreter paths. Follow these steps:
.../venv/lib/python3.8/site-packages
Additionally, you may associate the virtual environment with the current project by selecting Associate this virtual environment with the current project in the interpreter's edit box.
After these modifications, PyCharm should recognize the 'requests' module and allow you to import it seamlessly.
The above is the detailed content of Why Can't PyCharm Find My Installed Modules?. For more information, please follow other related articles on the PHP Chinese website!