前情提要:
之前用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
注意==
两边不能有空格.
一定要指定版本否则会下载最新版本.