安装streamlit问题:ERROR: pip‘s dependency resolver does not currently take into account all the packages

在尝试使用conda安装Streamlit失败后,通过pip安装导致问题,因为streamlit与python3.7的环境不兼容。解决方法是直接通过pip安装特定版本的pyqt5和pyqtwebengine,避免版本冲突。需输入命令:pipinstallpyqt5==5.12.3pipinstallpyqtwebengine==5.12.1。
摘要由CSDN通过智能技术生成

前情提要:

之前用conda 安装streamlit总是安装不了一直在solving environment, 于是采用pip安装但是不知为何安装在了虚拟环境py37里面, 于是streamlit又出了问题(可能是因为python版本用的是py37的python3.7版本吧).

建议使用Anaconda prompt安装包.

安装streamlit 提示

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.2.2 requires pyqt5<5.13, which is not installed.
spyder 5.2.2 requires pyqtwebengine<5.13, which is not installed.

实际上安装这两个包就好了.
解决方法:

pip install pyqt5==5.12.3
pip install pyqtwebengine==5.12.1

注意==两边不能有空格.
一定要指定版本否则会下载最新版本.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值