Forums

ImportError: No module named ...

Hello, I am new to pythonAnywhere and am simply trying to set up a script to run online as a redundancy.

My current issue is, I have cloned the necessary repository '' Binance_Futures_python/", run the setup and installed it. Yet when trying to import.

from binance_f import RequestClient

I get "No module named 'binance_f'. binance_f being within Binance_Futures_python.

This code all works when I run it locally through jupyter notebook. I am unsure how to solve the issue.

Thanks.

There are multiple versions of Python installed. Make sure you installed it for the same Python version that you run your code with. See: https://help.pythonanywhere.com/pages/InstallingNewModules/.

Hello, thanks for the respone.

This has managed to work for regular py files. but ipynb notebooks still have the issue, even with the installed python version as the notebook version.

Is there any extra I need to do for the notebooks?

Have a look at this help page.