I installed xgboost in PythonAnywhere and it shows successful but when I import it in a script, an error is given which says, "No module xgboost found". What can be the reason?
You probably installed it for a version of Python that is different to the one that you're running.
Xgboost giving import error in pythonAnywhere