pip freeze > requirements.txt
Find out what pip freeze means
https://note.nkmk.me/python-pip-list-freeze/
The pip list and pip freeze are compared.
The output format of pip list may differ depending on the version and settings of pip, but pip freeze outputs in the format
===
After pip freeze> requirements.txt, I got the following message
Python 2 is deprecated. Upgrade to pip3 as soon as possible. See https://cloud.google.com/python/docs/python2-sunset To suppress this warning, create an empty ~/.cloudshell/no-pip-warning file. The command will automatically proceed in 5 seconds or on any key.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop suppo rt for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-s upport
Since the contents were reflected in requirements.txt, there seemed to be no problem.
After that, the terminal was disconnected and it seemed that tensoflow could not be installed. It wasn't resolved, so maybe there is something wrong with it.
Recommended Posts