简体   繁体   中英

could not import requests and bs4

I want to import requests library and bs4 in pycharm but I got( no module ) 在此处输入图像描述

and as i click install package I got error

在此处输入图像描述

It recommend to update pip 20 to 21 but when I want to upgrade pip in scripts folder I got invalid syntax error

在此处输入图像描述

Based on

certificate verify failed: certificate not yet valid

I'm pretty certain that your computer's clock is incorrect. Check that first. If that's not the case, there might be a broken MITM SSL proxy in the way, which we can't do much about.

As for your problem upgrading Pip, you have a typo. You'll want --upgrade , not -upgrade . However, that's likely to fail too if you can't establish connections to the server hosting Python packages (including Pip).

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