Why is it necessary to uninstall the module ex46 in the exercise 46 of Learn Python The Hard Way?
Is there any specific reason?
Uninstall? Did I have you install it? If I have you uninstall then it’s just so it doesn’t pollute your later projects.
Ok. Can you mention those harms which a module can do if not uninstalled?
The biggest one is that you might do an import of the wrong code. Let’s say you have this line:
from ex46 import mything
Now, you’re working on the file:
ex46/mything.py
And you keep making changes over and over and NOTHING changes. Then, 2 days later you figure out it’s because the file that is actually being loaded is your installed ex46/mything.py that’s really in ~/.venvs/ex46/mything.py
.
Thanks. Now I understood.
1 Like