博主的公众号:Java4y 《《《《《《《《《 一个努力提高工作效率(增加摸鱼时间)的小白博主 》》》》》》》》》》 关注有惊喜哦 《《《《《《《《《 2021一起好好加油! (ง •_•)ง
内容概览 配置国内镜像源和解决虚拟环境(Venv)中安装bs4或者其他的第三方库的错误 —— Could not find a version that satisfies the requirement bs4
注意这里都是https的,不然下载包的时候会出现其他错误的,如下面的bs4。
python3安装bs4报错: ERROR: Could not find a version that satisfies the requirement bs4 (from versions: none) 错误信息如下图: 根据提示信息,他推荐我们在venv虚拟环境中执行这个 pip install --index-url http://mirrors.aliyun.com/pypi/simple/ bs4 🐷
来到项目的这个venv的Script文件夹中,执行activate激活虚拟环境,执行deactivate.bat即可退出,执行上面的代码😁, 看到黄色方框里的提示,意思是说这个http不安全,要加个参数,或者试试https可以不 将http改为https后 立刻成功了。。🙄 额 无语了。。 🙃 可能之前收集的那些国内镜像源地址不正确吧
