UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How can I install a new version of python?

    Scheduled Pinned Locked Moved Unsolved Support
    1 Posts 1 Posters 439 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • P Offline
        PancakeCrayon
        last edited by

        Hey all, I've honestly been trying all day without success and I'm not sure what to try next.

        I'm looking to get Python3.7 or newer (preferably 3.10.x) installed on my Nexus5 and I cant for the life of me figure it out.

        libertine-container-manager create --id test
        libertine-container-manager exec -i test -c "/bin/bash"
        python3 --version
        

        within this container I've tried add-apt-repository ppa:deadsnakes/ppa without success. I've downloaded and complied openssl-1.1.1v successfully(?) and Python-3.11.2 but when I try and pip install It says I haven't complied with SSL. Each time I try it takes almost 2 hours to get to this point.

        root@ubuntu-phablet:~/Python-3.8.12# /python/bin/python3 --version
        Python 3.11.2
        root@ubuntu-phablet:~/Python-3.8.12# /python/bin/python3 -c "import ssl; print('yay')"
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "/python/lib/python3.11/ssl.py", line 100, in <module>
            import _ssl             # if we can't import it, let the error propagate
            ^^^^^^^^^^^
        ModuleNotFoundError: No module named '_ssl'
        root@ubuntu-phablet:~/Python-3.8.12# /python/bin/python3 -m pip install --user matrix-nio
        WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
        WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/matrix-nio/
        
        

        any one have any ideas?

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post