简体   繁体   中英

Python Libraries are not importing into Pycharm

I am using Pycharm and I have the latest versions, I reinstalled everything today.

I want to install requests and BeautifulSoup and I do it with Pycharm settings and Python Interpreter. I add them there and click OK. I handle the path and all, but it keeps showing my import is unused or does not exist.

When I type: import requests , it is ok for 1 second, then it goes grey and gives me an error. Does anyone have any tips on this?

I have changed the path, done the environment thing and reinstalled twice.

It's not an error, it's only a warning. Pycharm is telling you that you have imported a library but you're not using this library (request). If you use the library the warning disappears

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM