posablock.blogg.se

Install python 3.8 ubuntu
Install python 3.8 ubuntu












install python 3.8 ubuntu

$ sudo apt install software-properties-common Installing it with a third party PPA repo $ sudo apt update

install python 3.8 ubuntu

Make sure to have sudo privileges while installing everything Next is to extract it and configure it $ tar -xvzf Python-3.8.1.tgz Next step is do make a temporary directory and download the source code of python $ mkdir ~/tmp $ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget Here are to ways to install it, here is how it's done:įirst update everything and install following packages $ sudo apt update ImportError: cannot import name 'Union' from partially initialized module '_ctypes' (most likely due to a circular import) (/usr/local/lib/python3.8/_ctypes/_init_.py) Now it is 'ok' but this error message appears from pip (and import ctypes doesn't work too): Traceback (most recent call last):įile "/usr/local/lib/python3.8/site-packages/setuptools/_init_.py", line 20, in įrom setuptools.dist import Distribution, Featureįile "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 35, in įile "/usr/local/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in įile "/usr/local/lib/python3.8/ctypes/_init_.py", line 7, in įrom _ctypes import Union, Structure, Arrayįile "/usr/local/lib/python3.8/_ctypes/_init_.py", line 8, in I failed again and again installing python3.8 on my ubuntu 21.04














Install python 3.8 ubuntu