Skip to content

issues in ubuntu 20 and python 3.8 #2

Description

@johnfelipe
sudo su
cd
apt install python3-pip
pip install streamlit
pip install streamlit --upgrade
pip install Jinja2==3
sudo apt install python3.8-venv
git clone https://github.com/josolnik/compfin_app
cd compfin_app/

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

pip install plotly
streamlit run app.py

but show me this in console

(env) root@felipe:~/compfin_app# streamlit run app.py

  You can now view your Streamlit app in your browser.

  Network URL: http://192.168.20.13:8502
  External URL: http://181.51.32.154:8502

2023-12-14 15:44:19.624 Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/streamlit/scriptrunner/script_runner.py", line 475, in _run_script
	exec(code, module.__dict__)
  File "/root/compfin_app/app.py", line 21, in <module>
	import utils_intro, utils_price_simulator, utils_risk_estimator, utils_portfolio_optimizer
  File "/root/compfin_app/utils_price_simulator.py", line 4, in <module>
	import plotly.graph_objects as go
ModuleNotFoundError: No module named 'plotly'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions