Can't import streamlit

Hi,

I have used the following command to install streamlit on my conda environment.

conda install -c conda-forge streamlit

When I run streamlit hello from conda command screen, I got the following error message

(base) C:\Users\home>streamlit hello
Traceback (most recent call last):
File “C:\Users\home\anaconda3\Scripts\streamlit-script.py”, line 5, in
from streamlit.cli import main
File “C:\Users\home\anaconda3\lib\site-packages\streamlit_init_.py”, line 49, in
from streamlit.proto.RootContainer_pb2 import RootContainer
File “C:\Users\kaiye\anaconda3\lib\site-packages\streamlit\proto\RootContainer_pb2.py”, line 22, in
create_key=_descriptor._internal_create_key,
AttributeError: module ‘google.protobuf.descriptor’ has no attribute ‘_internal_create_key’

Please advise,

Thanks

Hi, I suggest you uninstall conda environment and download python package to install any modules you want, in that way, problems will get solved.

python download page:

install package method:
open cmd window->pip install packagename

Thanks BeyondMyself. The reason that I have to use conda environment is that I can’t use pip install Facebook prophet. The only way to install prophet for me is to use conda install.

i am facing the same issue ,Did the issue solved in conda environment ?