'What would happen if I uninstall python, would my python project still work?

Let's say I created a django project with the help of virtualenv and I named my virtualenv venv, If I uninstall python from my system can I still use my project with the help of that venv?



Solution 1:[1]

No. It would not work.

Python is an "interpreted" language. Python scripts need the Python interpreter to run as well as its "standard library and other key files".

Although there is a python or python.exe executable binary in a Python virtual environment, it is not a self-sufficient standalone Python interpreter. It still needs the original Python interpreter used to create the virtual environment, or actually, if I am not mistaken, it needs access to "the standard library and other key files" of the original Python interpreter.

References:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1