Can't import streamlit


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\”, line 5, in
from streamlit.cli import main
File “C:\Users\home\anaconda3\lib\site-packages\”, line 49, in
from streamlit.proto.RootContainer_pb2 import RootContainer
File “C:\Users\kaiye\anaconda3\lib\site-packages\streamlit\proto\”, line 22, in
AttributeError: module ‘google.protobuf.descriptor’ has no attribute ‘_internal_create_key’

Please advise,


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.