I am a Java developer that has inherited a Python project. The previous developer didn't leave any info on what IDE was used nor can I see any IDE-related artifacts (e.g. project config files).
This is a program that is already deployed and running in a Linux environment so it works. I will be making enhancements.
It was developed in Python 3.6 and I want to continue using that version until I get the code working locally (Windows 10). At that point, I'll upgrade it to the latest version of Python.
The problem I'm having is I don't know how to ensure that all the 3rd-party modules are included in the environment. How would I go about identifying them?
I have looked at PIP for generating a requirements.txt file but I'm not sure if that's what I need or not. When I run pip freeze > requirements.txt
, it just creates an empty file. And I'm not understanding how pip is supposed to know the context of the request. I need it to identify the modules used by the code, if that's possible, but there doesn't seem to be any mechanism for telling pip where the code is.