Problem description: After installing the requests module using pip under cmd, I can use import requests, but I can’t import it under Pycharm IDE with the following error: ModuleNotFoundError: No module named ‘requests ‘
Later I found out that my python was installed on E drive, but I installed it on C drive with the install requests command, without switching E drive. I reinstalled it on the E drive
Installation steps
①cmd window: switch to the Scripts file in the python installation directory on disk E
②Install command: pip install requests
, but there is a yellow text error
③ Follow the Yellow prompt command and enter: python -m pip install --upgrade pip
to complete the installation
④ Prove that the installation is successful: you can enter the command under Python: import requests
command does not report an error
Pycharm page
Read More:
- [Solved] ModuleNotFoundError: No module named ‘requests‘
- [Solved] Pychar error: modulenotfounderror: no module named ‘requests_ HTML ‘solution
- [Solved] ModuleNotFoundError: No module named ‘_polyiou‘
- ModuleNotFoundError: no module named ‘pip‘ [How to Solve]
- [Solved] ModuleNotFoundError: No module named ‘pip‘
- [Solved] ByteTrack Error: ModuleNotFoundError: No module named ‘yolox’
- ModuleNotFoundError: No module named ‘tensorflow.python’ And the pits encountered after installation
- [Solved] Pytest Error: E ModuleNotFoundError: No module named ‘common
- [Solved] ModuleNotFoundError: No module named ‘xxx’; ‘xxx’ is not a package
- How to Solve PyInstaller Package Error: ModuleNotFoundError: No module named ‘xxxx‘
- [Solved] modulenotfounderror: no module named ‘torchtext.legacy.data.datasets_ utils‘
- [Solved] scikit-learn Error: ModuleNotFoundError: No module named ‘sklearn.utils.linear_assignment_’
- [Solved] Jupyter notebook use pyLDAvis Error: modulenotfounderror: no module named ‘pyLDAvis’‘
- [Mac M1] How to Solve import wordcloud Error: ModuleNotFoundError: No module named ‘wordcloud‘
- [Solved] jupyter notebook Error: ModuleNotFoundError: No module named jupyter_nbextensions_configurator
- Module notfounderror when installing suds: no module named ‘client’ solution
- Module not found error: no module named ‘filefolder’ appears when learning engineering knowledge
- [How to Solve] ImportError: No module named typing
- No module named ‘google.rpc‘ [How to Solve]
- bandersnatch Error: No module Named [How to Solve]