-
Install direnv and make sure path to python and pip bin folders are present in the
PATH
env var- on MacOS (with Python 3.9 already installed with
brew install [email protected]
):
brew install direnv cd pandemia-covid-streamlit echo export PATH="/usr/local/opt/[email protected]/libexec/bin:$PATH" > .envrc
- on MacOS (with Python 3.9 already installed with
-
Install pipenv, activate the environment and install streamlit:
pip install pipenv pipenv shell pipenv install streamlit
-
Run the app:
streamlit run streamlit_app.py
π‘ To install dependencies from Pipfile.lock, run pipenv shell
and then pipenv sync
.
π‘ In Visual Studio Code, to use the correct python interpreter, run the >Python: Select Interpreter
VS Code command (Cmd+Shift+P
on MacOS) and select the one in your virtual environment.
To find out which one needs to be selected, run pipenv shell
in the terminal and then which python
.