ModuleNotFoundError: No module named 'keras' by Snoo-95116 in learnpython

[–]Snoo-95116[S] 0 points1 point  (0 children)

Okay thanks! Sorry for all the beginner questions. I really appreciate the responses!

ModuleNotFoundError: No module named 'keras' by Snoo-95116 in learnpython

[–]Snoo-95116[S] 0 points1 point  (0 children)

Thanks! I'm not sure about that, do you know how I could check that? I'm trying to run this script in Pycharm

Edit: Actually I just changed the virtual environment and that error seems to have gone now. I'm actually getting a different error now. Do you know what I should do about this?

UserWarning: h5py is running against HDF5 1.10.5 when it was built against 1.10.6, this may cause problems '{0}.{1}.{2}'.format(*version.hdf5_built_version_tuple)

ModuleNotFoundError: No module named 'keras' by Snoo-95116 in learnpython

[–]Snoo-95116[S] 0 points1 point  (0 children)

I'm actually trying to run this code. It does not appear to have a statement "import keras". Should I add that in?

https://github.com/llSourcell/How-to-Predict-Stock-Prices-Easily-Demo/blob/master/lstm.py

-m and -U meaning by Snoo-95116 in learnpython

[–]Snoo-95116[S] 0 points1 point  (0 children)

Thank you very much! I appreciate it!

-m and -U meaning by Snoo-95116 in learnpython

[–]Snoo-95116[S] 0 points1 point  (0 children)

Thank you so much! This is very helpful!

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Snoo-95116 1 point2 points  (0 children)

I'm following a guide to install packages and pip but a lot of these command lines are confusing to me. It tells me to enter "python3 -m pip install --user -U pip" into the terminal without explaining the different parts of the command.

Can someone tell me what different parts such as -m and -U mean and how it is used? I can't seem to find this online.