I am having trouble to make Streamlit use my virtual environment, it insists on using the global environment.
Here is my list of processes:
- Create a new folder.
- Open the folder using vscode.
- python -m venv env
- Activate the env
- Install packages such as streamlit and additional package called pyeq3. (Note that pyeq3 is not installed in my global package, but others are.)
- In the terminal of vscode where env is already activated, write “streamlit run mycode.py”.
- Streamlit says pyeq3 is not installed and the error message refers to script_runner.py that is located inside my global environment. So it does not look into my virtual environment.
Can anyone see what I am doing wrong here?