Hello! I know this question has already been addressed, but I am having major issues with this and it’s stressing me out.
Operating off a macbook pro. Both python 2 and python 3.7 installed on the platform.
Tried installing streamlit with both pip and pip3 --> success! But when i call streamlit hello on terminal, i get a command not found error. Would really appreciate anyone’s help to triage this issue and help me solve it.
It turns out that my pip and pip3 had installed streamlit to a different location and in order to call stremlit. I found a work around by typing this is terminal:
I am having another problem however. When I run a py file with embrace: streamlit run XXX.py I am getting this error - see screenshot.
The only problem is - I know that I installed - via pip3 - clickhouse-driver, because when i run this py file as a notebook, the packages are imported without any error.
For all of the issues you have encountered (and more), we heartily recommend running Streamlit within a virtual environment instead of trying to run from a global install. Python is notoriously finicky with packages.
At Streamlit we use pipenv, which does not come stock with any OS right now, but which should be easy enough to install if you’re on Linux or OS X. On Window most people use Conda environments. Looks to me like you’re on OS X though.
Do have a look at our Installing In a Virtual Environment page and try out the approach of using pipenv, then install streamlit, clickhouse-driver, and so on within the virtual environment. Let us know how it goes!
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.