这是我第一次使用流光,我使用它安装的pip install streamlit
安装了sreamlit。使用streamlit run pop.py
运行python文件时,在下面给出了以下错误:
C:\Users\DELL>streamlit run pop.py
Traceback (most recent call last):
File "c:\users\dell\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\dell\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\DELL\AppData\Local\Programs\Python\Python39\Scripts\streamlit.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'streamlit.cli'; 'streamlit' is not a package
该怎么办呢。请帮帮忙
发布于 2021-04-17 16:34:49
您正在Python中使用它。打开cmd后,不要编写python
。只需转到文件夹并在cmd中写入streamlit run pop.py
即可。不是用Python。
https://stackoverflow.com/questions/66759397
复制相似问题