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 240 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
        • First post
          Last post