MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/8fztrr/xkcd_python_environment/dy8lhm0?context=9999
r/Python • u/themonsterpus • Apr 30 '18
388 comments sorted by
View all comments
197
It's really easy to avoid this problem if you treat your python environments as disposable artifacts of your projects.
19 u/Deto Apr 30 '18 The best way to avoid this problem, IMO, is to just learn these two things:How does the PATH variable work in UNIX?How does the Python interpreter know where to look for packages?If you understand these two things, you can have multiple versions of Python all over your system and still understand what's going on. 3 u/rohit275 Apr 30 '18 I'm a noob, so I'm pretty sure i don't understand those two things. Do you think you could lend some insight? 1 u/Deto Apr 30 '18 I didn't really feel like explaining it here. If you google these exact questions, you'll probably very quickly find someone who has done a much better job of it than I would have here anyways. → More replies (3)
19
The best way to avoid this problem, IMO, is to just learn these two things:
How does the PATH variable work in UNIX?
How does the Python interpreter know where to look for packages?
If you understand these two things, you can have multiple versions of Python all over your system and still understand what's going on.
3 u/rohit275 Apr 30 '18 I'm a noob, so I'm pretty sure i don't understand those two things. Do you think you could lend some insight? 1 u/Deto Apr 30 '18 I didn't really feel like explaining it here. If you google these exact questions, you'll probably very quickly find someone who has done a much better job of it than I would have here anyways. → More replies (3)
3
I'm a noob, so I'm pretty sure i don't understand those two things. Do you think you could lend some insight?
1 u/Deto Apr 30 '18 I didn't really feel like explaining it here. If you google these exact questions, you'll probably very quickly find someone who has done a much better job of it than I would have here anyways. → More replies (3)
1
I didn't really feel like explaining it here. If you google these exact questions, you'll probably very quickly find someone who has done a much better job of it than I would have here anyways.
→ More replies (3)
197
u/the_hoser Apr 30 '18
It's really easy to avoid this problem if you treat your python environments as disposable artifacts of your projects.