了解路径/环境/流线型照明

2024-03-29 09:40:59 发布

您现在位置:Python中文网/ 问答频道 /正文

任何地方都有学习和理解其工作原理的入门读物吗

通常,当我安装一个软件包时,我只使用pip,或者pycharm中的安装程序

我发现自己在尝试运行Streamlight时非常困惑。我花了一天的时间想弄明白

https://docs.streamlit.io/en/stable/

这些说明很简单:

pip安装streamlight

Streamlight你好

我最近有一个32位的python,我用64位替换了它。这是否导致下面的python38-32 vs python38错误

Fatal error in launcher: Unable to create process using ‘“c:\users\user\appdata\local\programs\python\python38-32\python.exe” “C:\Users\user\AppData\Local\Programs\Python\Python38\Scripts\streamlit.exe” hello’: The system cannot find the file specified.

我试过:

 C:\Users\user>python -m streamlit hello
C:\Users\user\AppData\Local\Programs\Python\Python38\python.exe: No module named streamlit.__main__; 'streamlit' is a package and cannot be directly executed

我不确定这是从哪里来的:

local\programs\python\python38-32\python.exe

这不存在,我只有:

Local\Programs\Python\Python38\

这就是windows的发展方向

我想知道是否有人能帮忙。谢谢


Tags: piphellolocalexeusersappdatauserprograms
2条回答

医生应该说:>; streamlit run app.py

尝试: python streamlit运行你好

如果您使用的是Windows操作系统,您可以尝试以下步骤:

  1. 首先,您需要下载Anaconda: https://www.anaconda.com/

  2. 打开Anaconda PowerShell提示符并键入以下内容:

    conda list

    pip uninstall streamlit

  3. 然后,创建一个新环境,并测试以下各项:

    pip install streamlit

    streamlit hello

  4. 最后,您可以在代码上测试Streamlight,用文件的实际名称替换_应用程序。确保与源代码文件位于同一目录中

    streamlit run your_app.py

相关问题 更多 >