Hi there everyone.
Over the past years I have had enormous problems Python package management. Because of the existence of python2.7 and python3.8 and their own versions of PIP etc I’ve run into a lot of installation problems.
My problem here is that I don’t have a overview of package management. Therefore i’d like to ask some help here. Not for a general coding problem i’m having but rather advice on the ‘practical guidelines’ on python management.
Im facing the following problems:
- How to manage python installations alongside eachother ?
- How should i best incorporate python dependencies in PATH ?
- How should i install packages for python2 and python3 alongside each other ?
- How should i best manage pip and pip3 installations ?
Whats happening now is that i’m trying to install pip package and i get an error. I google for the error and try to fix it. The problem here is that over time my python installations seem to become one big mess of spaghetti and more complex errors emerge.
I don’t know if its important but i’m using a lot of SBC’s like the tinkerboard S and Rockpi. I’m currently trying to install motioneye on my tinkerboard. Motioneye is python2 based requires pillow, and installation became a huge mess there. My tinkerboard S is running armbian based on Ubuntu 20. The reason i’m asking the question here is because i think my problems are a result of my lack of knowledge of linux because my knowledge self taught and therefore not very structured.
What am i looking for?
The internet is filled with a huge information database. I have however not found a nice website or post on the python management on ubuntu. I hope that you more experienced engineers can point me out to a good starting position to gain more insight into python package management.
Thank you in advance.
Johan
Bookmarks