Results 1 to 4 of 4

Thread: Python hell: python2, python3, pip, pip3, pillow, wheel...HELP!

  1. #1
    Join Date
    Aug 2019
    Beans
    6

    Question Python hell: python2, python3, pip, pip3, pillow, wheel...HELP!

    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
    Last edited by johantonissen; June 15th, 2020 at 03:29 PM. Reason: spelling

  2. #2
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Python hell: python2, python3, pip, pip3, pillow, wheel...HELP!

    I would explore miniconda to orchestrate your various python installations in different environments you can setup.

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Python hell: python2, python3, pip, pip3, pillow, wheel...HELP!

    With my new 20.04 install, I prevent any applications from installing python2. The one or two I like, I am currently just doing without. Almost everything is python3.
    I have a program that I converted from python2 to python3 several years ago, so I do not really need python2 anymore.

    See also this recent thread:
    https://ubuntuforums.org/showthread.php?t=2444887
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Python hell: python2, python3, pip, pip3, pillow, wheel...HELP!

    Unfortunately some apps the OP is playing with "Motioneye is python2 based" are still dependent on Python2.

    At the risk of confusing OP I would go one step up the ladder of languages and explore what HaXe.org can offer.

    HaXe is a high level transpiler which can generate python 3 .. or other languages .. from a common code base. But HaXe only supports Python3 today not Python2
    It offers the option of transpiling into python3, C++ or other supported languages. i can generate Electron apps for example..
    Last edited by dragonfly41; June 15th, 2020 at 04:13 PM. Reason: referred to HaXe

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •