I wanted to generate a requirements.txt for all the libraries that I imported in a project which ad two py files and one ipynb, but in Pycharm I could generate a requirement.txt for just py files and it is not generating the necessary library names for jupyter notebook.
I tried using “Sync Python requirements” tool in pycharm but it generated the requirement.txt for the libraries in python files only and didnt add any library names that were in Jupyter notebookPycharm tool for generating requirements.txt
Srinidhi .S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3
You can try with
pip freeze > requirements.txt
this saves all the packages currently installed to requirements.txt file