You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python is a high-level, object-oriented and multipurpose programming language that is extremely popular thanks to its simple and easy-to-learn syntax. It is widely used in various IT disciplines such as data analytics and visualization, web development, gaming development, AI, and machine learning.
Run the below command to update the system and install the required dependencies for the python 3.11.
At the time of writing this article, the latest version of 3.11 is version 3.11.3. We recommend you check Python's official site to get the latest version for your installation, https://www.python.org/downloads/
wget https://www.python.org/ftp/python/3.11.3/Python-3.11.3.tgz
tar -xvf Python-3.11.3.tgz
If a different version has been downloaded, ensure you extract the correct file.
Next, cd into the extracted directory, in our case it is Python-3.11.3 (the name may vary if a different version has been downloaded).
And run the configure command to verify if all the dependencies are met for the Python installation.
cd Python-3.11.3
./configure --enable-optimizations
Let's get the number of CPU cores your machine has,
nproc
This will print a number, use that in the below command, make will start the build process and the number 4 represents the number of CPU cores.
make -j 4
The default Python installation is /usr/bin. If you want to install Python under /usr/local/bin instead of overwriting the default, do this:
make altinstall
Run the below command to get the version of the installed Python:
Python is a high-level, object-oriented and multipurpose programming language that is extremely popular thanks to its simple and easy-to-learn syntax. It is widely used in various IT disciplines such as data analytics and visualization, web development, gaming development, AI, and machine learning.
Run the below command to update the system and install the required dependencies for the python 3.11.
At the time of writing this article, the latest version of 3.11 is version 3.11.3. We recommend you check Python's official site to get the latest version for your installation, https://www.python.org/downloads/
Next,
cd
into the extracted directory, in our case it isPython-3.11.3
(the name may vary if a different version has been downloaded).And run the
configure
command to verify if all the dependencies are met for the Python installation.Let's get the number of CPU cores your machine has,
This will print a number, use that in the below command,
make
will start the build process and the number 4 represents the number of CPU cores.The default Python installation is
/usr/bin
. If you want to install Python under/usr/local/bin
instead of overwriting the default, do this:Run the below command to get the version of the installed Python:
Output:
This concludes our topic of installing Python 3.11 version.
The text was updated successfully, but these errors were encountered: