I just install Streamlit 0.48.1 within PyCharm and received the âsuccessfully installedâ notification. However, I am unable to run âstreamlit helloâ within PyCharm. When attempting to run âsteamlit helloâ from a terminal prompt in PyCharm I receive the message ââstreamlitâ is not recognized as an internal or external command, operable program or batch file.â
Does anyone have any suggestions? I am using PyCharm Profession 2019.2, Python 3.7.5 and Windows 10.
Run python3.7 -m pip install streamlit and check again? Maybe you installed it under 3.6.x if you still have it on your machine. Also just to be sure, double check if your interpreter in PyCharm matches your current Python version.
Thanks for your response. I confirmed that Streamlit is installed in Python 3.7. I ran python -m pip install streamlit from the following path: âC:\Users\name\AppData\Local\Programs\Python37â and received the message of âRequirement already satisfied.â I also confirmed that my interpreter in PyCharm matches my current Python version. Python 3.7.5 runs from the following file extension âC:\Users\name\AppData\Local\Programs\Python\Python37\python.exe.â The python files that I am attempting to run that contain the streamlit reference (import streamlit as st) are saved in the default library assigned by PyCharm which is âC:\Users\Name\Documents\PythonScriptsâ. I typed the âstreamlit run my_filename.pyâ command from this default path (âC:\Users\Name\Documents\PythonScriptsâ) while in the PyCharm Terminal and receive the message ââstreamlitâ is not recognized as an internal or external command, operable program or batch file.â Do I have something configured incorrectly? Am I attempting to run streamlit from the incorrect file path?
Overall, it feels like Streamlit âgets lostâ within the various file pathâs.
Yes. I receive the same results from the Windows terminal. Overall, I think this is a Windows issue as opposed to an issue with PyCharm. Are there other Windows users experiencing problems trying to run streamlit?
Try writing the code in any simple editor then run it from terminal/cmd itself. It works fine! I donât know about pycharm but streamlit do not support jupyter notebook as well so, better run the code in the traditional way by writing it using any editor like visual studio code or notepad etc. Hope it helps!
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking âAccept allâ, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.