python - 如何选择我的 python 版本来使用 streamlit?
问题描述
我有一个 app.py,并且我的机器上安装了几个版本的 python。如何选择键入时应运行的 python 版本:
streamlit run app.py
解决方案
python --version
输出: Python 3.8.8
这将是您的 streamlit 应用程序将在其上运行的版本。在我的情况下是 3.8.8。
如果你想为 streamlit 使用不同版本的 Python,你可以从 python.org 安装它,使用虚拟环境,或者使用 conda 创建一个特定的环境conda install python 3.6.0
推荐阅读
- dictionary - Haskell:如何在自己的地图数据类型上实现应用函子?
- javascript - 如何更改表单提交以重定向到 URL 而不是警报(“确认表单提交”)?
- python - 如何使用 isclose() 将坐标列表中的重复项数作为元组获取?
- kubernetes - 使用树莓派远程管理 k8s 集群
- python - SQL比较运算符Python)我无法通过python文件对SQL查询执行比较运算符
- java - Launcher Activity 和 Thread run() 被调用两次
- python - Python中函数的静态变量是什么?
- html - 像谷歌一样制作按钮动画(涟漪效应)
- regex - Spring Cloud Gateway:在传入请求中重写 URI
- javascript - 如何在我的 React 项目中导入为 JQuery 设计的小部件?