简体   繁体   中英

Installation of Streamlit without Altair

I want to use Streamlit in my organization, but my org does not allow Altair installation internally due to safety issues, but Altair is a dependency for Streamlit. Is there a way to install Streamlit without Altair?

As @ferdy and @RJ Adriaansen have suggested, there are 2 ways to install streamlit without installing altair :

pip install streamlit && pip uninstall -y altair

or

pip install --no-deps streamlit
pip check | cut -d' ' -f4 | cut -d',' -f1 | grep -v 'altair' > requirements-no-altair.txt
pip install -r requirements-no-altair.txt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM