I would like to develop a code with Streamlit but I got some problem with Visual Studio Terminal.
Basically I’m not able to run in on my local host using VS. The error that comes out says when I digit: streamlit run asset_allocation.py
is
Traceback (most recent call last):
File "c:\users\admin\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\admin\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\admin\anaconda3\scripts\streamlit.exe\__main__.py", line 4, in <module>
File "c:\users\admin\anaconda3\lib\site-packages\streamlit\cli.py", line 27, in <module>
import streamlit.bootstrap as bootstrap
File "c:\users\admin\anaconda3\lib\site-packages\streamlit\bootstrap.py", line 29, in <module>
from streamlit.server.Server import Server
File "c:\users\admin\anaconda3\lib\site-packages\streamlit\server\Server.py", line 28, in <module>
import tornado.web
File "c:\users\admin\anaconda3\lib\site-packages\tornado\web.py", line 87, in <module>
from tornado.httpserver import HTTPServer
File "c:\users\admin\anaconda3\lib\site-packages\tornado\httpserver.py", line 29, in <module>
import ssl
File "c:\users\admin\anaconda3\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed: The specified module could not be found.
But if I run the same code on the anaconda prompt it shows me the right address to the localhost.
I would like to have it on the VS terminal because in this way I can’t see the changes real-time.