I have networkx installed in python 2.7, 3.6, 3.7, 3.8, but streamlit doesn’t seem to be able to find the networkx module. The script works well without streamlit.
Streamlit has largely been built and tested using virtual environments. Can you set up a virtual environment for your project and try again? I’m hoping that fixes the issue, but if it doesn’t, please do come back and share the traceback with us again.
Any virtual environment will do. On your OSX system, you should be able to do the following successfully: