I've been in a similar boat before trying to get Python working on older systems like Windows 7. Here’s what I’ve learned along the way:
Python Version: Sticking with Python 3.9 is a good choice since it's the last version supporting Windows 7. If you're not utilizing newer features, Python 3.8 might offer slightly better stability. However, with fewer updates, security could be a concern with older versions.
Installation Issues: The error related to missing DLLs is pretty common and usually comes down to needing the Visual C++ Redistributable. Make sure the one for Visual Studio 2015-2019 is installed on your system. This package ensures you have the necessary runtime components required by Python.
Dependencies: Besides the Visual C++ Redistributable, it's essential to have your system updated with Service Pack 1 and any other crucial updates. These will improve compatibility with newer software.
Alternatives: Python 2.7 is generally not recommended due to its end-of-life status, which means no more security patches or updates. Anaconda or Miniconda can be a lightweight alternative, or even something like PyPy if performance is crucial and you're okay with some compatibility issues.
Security Concerns: To mitigate risks, ensure that your system is isolated from critical networks and use comprehensive security software. Running the scripts in a virtual environment can also help keep your main system safer.
I hope this helps, and if you need more detailed instructions on any of these steps or have other questions, feel free to reach out! How have these steps worked for others in a similar situation?