<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Python Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/python/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Fri, 07 Nov 2025 15:30:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>Python Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/python/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install Python 3.14 on Ubuntu 24.04</title>
		<link>https://www.linuxtuto.com/how-to-install-python-3-14-on-ubuntu-24-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-python-3-14-on-ubuntu-24-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Fri, 07 Nov 2025 15:30:02 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=2027</guid>

					<description><![CDATA[<p>Python is one of the most popular programming languages in the world, widely used for web development, data science, automation, and DevOps. With every new...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-python-3-14-on-ubuntu-24-04/">How to Install Python 3.14 on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Python is one of the most popular programming languages in the world, widely used for web development, data science, automation, and DevOps. With every new release, Python introduces performance improvements, security patches, and modern syntax features that make development smoother and faster.</p>
<p>This tutorial illustrates two methods of how to install it on your Ubuntu 24.04 OS.</p>
<ul>
<li>Install Python 3.14 from the <strong>Deadsnakes PPA</strong></li>
<li>Manually build Python 3.14 from the <strong>source code</strong></li>
</ul>
<h2><span class="has-inline-color has-vivid-purple-color">Why Upgrade to Python 3.14?</span></h2>
<p>Before diving into the commands, it’s worth understanding why upgrading to Python 3.14 is beneficial.</p>
<p>Some of the expected improvements in Python 3.14 include:</p>
<ul>
<li><strong>Performance boosts:</strong> Faster startup times and optimized memory usage.</li>
<li><strong>Enhanced syntax features:</strong> Cleaner pattern matching and new language constructs.</li>
<li><strong>Improved error messages:</strong> More readable and beginner-friendly tracebacks.</li>
<li><strong>Security updates:</strong> Stronger hashing algorithms and better sandboxing support.</li>
</ul>
<p>Python 3.14 is fully backward compatible with most 3.x scripts, but testing your projects in a virtual environment is still recommended before full migration.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Update and Upgrade Your System</span></h2>
<p>Start by updating your Ubuntu 24.04 system to avoid package conflicts:</p>
<pre><code># apt update &amp;&amp; sudo apt upgrade -y
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Method 1: Install Python 3.14 Using Deadsnakes PPA (Recommended)</span></h2>
<p>This method makes it easy to install Python 3.14 on Ubuntu 24.04 and be able to receive continued updates, bug fixes, and security updates.</p>
<p>The <strong>Deadsnakes PPA</strong> is a trusted third-party repository that provides newer versions of Python for Ubuntu systems.</p>
<p>First Add the Deadsnakes PPA to the APT package manager sources list:</p>
<pre><code># add-apt-repository ppa:deadsnakes/ppa -y</code></pre>
<p>Press Enter to continue.</p>
<p>Once the repository has been installed, run an APT update to ensure that the newly imported PPA is reflected.</p>
<pre><code># apt update
</code></pre>
<p>Now you can  install Python 3.14 with the following command:</p>
<pre><code># apt install python3.14 -y
</code></pre>
<p>Then verify the installation with the following command:</p>
<pre><code># python3.14 --version
</code></pre>
<p>You should see output similar to:</p>
<pre><code>Python 3.14.0</code></pre>
<p>If you have installed Python 3.14 using the APT package manager, the PIP will not be installed by default. To install <strong>pip3.14</strong>, run the following command:</p>
<pre><code># curl -sS https://bootstrap.pypa.io/get-pip.py | python3.14 </code></pre>
<p>You can check PIP for the <code>Python 3.14</code> version using the following command:</p>
<div class="code-toolbar">
<pre class="wp-block-prismatic-blocks language-bash"><code class=" language-bash"># pip3.14 -V

pip 25.3 from /usr/local/lib/python3.14/site-packages/pip (python 3.14)</code></pre>
</div>
<h2><span class="has-inline-color has-vivid-purple-color">Method 2: Build Python 3.14 from Source</span></h2>
<p>Also, you can compile Python 3.14 manually from the official source code. With this installation method, the main issue is that you cannot quickly update like the APT package manager and will need to recompile for any changes.</p>
<p>First, install the required prerequisite packages for the compilation of the Python 3.10 source code.</p>
<pre><code># apt install -y build-essential libssl-dev zlib1g-dev \
libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev \
libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev \
tk-dev libffi-dev uuid-dev wget
</code></pre>
<p>Now proceed and download the latest release version of Python from the<a href="https://www.python.org/downloads/release/python-3140/" target="_blank" rel="noreferrer noopener"> Python official release page</a>.</p>
<p>Alternatively, copy the download link for Python 3.14 gzipped tarball and use <strong>wget</strong> to pull it with the following command:</p>
<pre><code># cd /usr/src &amp;&amp; wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0.tgz
</code></pre>
<p>Once done, extract the archive:</p>
<pre><code># tar -xf Python-3.14.0.tgz</code></pre>
<p>Now navigate into the extracted directory and run the <strong>configure</strong> script to check the required dependencies.</p>
<pre><code># cd Python-3.14.0</code></pre>
<pre><code># ./configure --enable-optimizations --enable-shared</code></pre>
<p>You can speed up the build process by using all CPU cores:</p>
<pre><code> make -j 6
</code></pre>
<p>Remember, the<strong> (-j)</strong> corresponds to the number of cores in your system to speed up the build time.</p>
<p>To find out how many cores you have on your system, execute the following code:</p>
<pre><code># nproc</code></pre>
<p>Output:</p>
<pre><code>6</code></pre>
<p>We have six cores, so in the (make) command, we used <strong>(-j 6)</strong>.</p>
<p>Once the build process has been completed, run the following command to complete the Python installation. Instead of overwriting the system version, we’ll install Python 3.14 as an alternative:</p>
<pre><code># make altinstall
</code></pre>
<p>The <strong>altinstall</strong> target prevents replacing <strong>/usr/bin/python3</strong> and keeps your default Python intact.</p>
<p>Verify your installation:</p>
<pre><code># python3.14 --version
</code></pre>
<p>If everything went smoothly, you’ll see:</p>
<pre><code>Python 3.14.0</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Install Python Modules|Extensions</span></h2>
<p>Modules and extensions can be installed using the <strong>Python Package manager</strong> (PIP).</p>
<p>Use the syntax below to install a Python module of choice.</p>
<pre><code># pip3.14 install <strong>module-name</strong></code></pre>
<p>In this tutorial, We will show you how to install a Python module <strong>plotly</strong>.</p>
<pre><code># pip3.14 install <strong><span class="has-inline-color has-pale-cyan-blue-color">plotly</span></strong></code></pre>
<p>Output:</p>
<pre><code>Collecting plotly
  Downloading plotly-6.4.0-py3-none-any.whl.metadata (8.5 kB)
Collecting narwhals&gt;=1.15.1 (from plotly)
  Downloading narwhals-2.10.2-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from plotly) (24.0)
Downloading plotly-6.4.0-py3-none-any.whl (9.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.9/9.9 MB 11.3 MB/s  0:00:00
Downloading narwhals-2.10.2-py3-none-any.whl (419 kB)
Installing collected packages: narwhals, plotly
Successfully installed narwhals-2.10.2 plotly-6.4.0
</code></pre>
<p>You can verify your module installation using the following command:</p>
<pre class="wp-block-code"><code># pip3.14 list | grep plotly
Package                Version             
---------------------- --------------------
..............
plotly 6.4.0
..............</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Create a Virtual Environment</span></h2>
<p>After successfully installing Python 3.14, it’s a best practice to <strong>create a virtual environment</strong> before installing any packages. Virtual environments allow you to isolate dependencies for each project preventing conflicts between system-wide and project-specific Python libraries.</p>
<p>The <strong>venv</strong> module is not included by default with the <code>Python 3.14</code> installation, but you can install it manually:</p>
<pre><code># apt install python3.14-venv -y
</code></pre>
<p>This package provides the necessary tools to create and manage virtual environments.</p>
<p>You can create a virtual environment in your project directory. Navigate to your desired location and run:</p>
<pre><code># python3.14 -m venv myenv
</code></pre>
<p>Note: <strong>myenv</strong> is the name of your virtual environment (you can rename it).</p>
<p>To start using your isolated Python environment, activate it with the following command:</p>
<pre><code># source myenv/bin/activate
</code></pre>
<p>Once activated, your shell prompt should change to show the environment name, similar like this:</p>
<pre><code class="whitespace-pre!">(myenv) root@linuxtuto:~#</code></pre>
<p>To deactivate the virtual environment run the following command:</p>
<pre><code># deactivate</code></pre>
<p>While the environment is active:</p>
<ul>
<li style="list-style-type: none;">
<ul>
<li>All installed Python packages will stay local to the project.</li>
</ul>
</li>
</ul>
<ul>
<li style="list-style-type: none;">
<ul>
<li>The global Python installation remains unaffected.</li>
</ul>
</li>
</ul>
<h2><span class="has-inline-color has-vivid-purple-color">Optional: Set Python 3.14 as Default</span></h2>
<p>Ubuntu 24.04 still ships with <a href="https://www.linuxtuto.com/how-to-install-python-3-12-on-ubuntu-22-04/">Python 3.12</a> by default. You can switch to Python 3.14 using <strong>update-alternatives</strong> safely:</p>
<pre><code># update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
# update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.14 2
# update-alternatives --config python3
</code></pre>
<p>And choose which one to use as Python3 via command:</p>
<pre><code># update-alternatives --config python3</code></pre>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-2030" src="https://www.linuxtuto.com/wp-content/uploads/2025/11/python_alternatives-900x195.webp" alt="Python Alternative" width="900" height="195" srcset="https://www.linuxtuto.com/wp-content/uploads/2025/11/python_alternatives-900x195.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2025/11/python_alternatives-300x65.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2025/11/python_alternatives-768x167.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2025/11/python_alternatives-897x195.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2025/11/python_alternatives-684x148.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2025/11/python_alternatives.webp 936w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Select Python 3.14 when prompted, then verify:</p>
<pre><code># python3 --version
</code></pre>
<p>Expected output:</p>
<pre><code>Python 3.14.0</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Conclusion</span></h2>
<p>Installing <strong>Python 3.14 on Ubuntu 24.04</strong> is simple using the Deadsnakes PPA or by compiling from source. The new release delivers performance improvements, better syntax, and modern features that make development faster and safer.</p>
<p>With <code>Python 3.14</code> installed, you’re ready to build powerful applications, automate workflows, or explore AI projects with the latest language tools.</p>
<p>For additional help or useful information, we recommend you to check  the official <a href="https://docs.python.org/3.14/whatsnew/3.14.html">Python documentation</a>.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-python-3-14-on-ubuntu-24-04/">How to Install Python 3.14 on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-python-3-14-on-ubuntu-24-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2027</post-id>	</item>
		<item>
		<title>How to Install Jupyter Notebook on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-jupyter-notebook-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-jupyter-notebook-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 28 Mar 2024 13:45:02 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Jupyter]]></category>
		<category><![CDATA[Notebook]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1719</guid>

					<description><![CDATA[<p>Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. It&#8217;s...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-jupyter-notebook-on-debian-12/">How to Install Jupyter Notebook on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. It&#8217;s widely used in various fields such as data science, machine learning, scientific computing, and education.</p>
<p>The term &#8220;Jupyter&#8221; is derived from the combination of three programming languages: Julia, Python, and R. These were the first languages supported by the Jupyter project, but now it supports many other programming languages through its interactive computing protocol.</p>
<p>In this tutorial, we will show you how to install Jupyter Notebook on Debian 12 OS with Apache web server</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 12</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Pip on Debian 12</span></h2>
<p><a href="https://www.linuxtuto.com/how-to-install-python-3-12-on-ubuntu-22-04/"><strong>Python</strong></a> comes already installed by default on Debian 12. You can verify it by checking its version:</p>
<pre><code># python3 -V</code></pre>
<pre><code>Output:
Python 3.11.2</code></pre>
<p>If it doesn&#8217;t, install <strong>Python</strong> with the following command:</p>
<pre><code># apt install python3</code></pre>
<p>Then use the following command to install <strong>pip</strong> and <strong>venv</strong> on Debian 12:</p>
<pre><code># apt install python3-venv python3-pip</code></pre>
<p>Verify your pip installation by checking its version:</p>
<pre><code># pip3 --version</code></pre>
<pre><code>Output:
pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install Jupyter Notebook Using Virtualenv</span></h2>
<p>First, create a directory and switch to it with the commands below:</p>
<pre><code># mkdir /var/www/notebook 
# cd /var/www/notebook</code></pre>
<p>Before you install Jupyter Notebook, you first need to create a Python virtual environment.</p>
<pre><code># python3 -m venv notebook_env</code></pre>
<p>Next, activate the virtual environment with the following command:</p>
<pre><code># source notebook_env/bin/activate</code></pre>
<p>Next, install Jupyter Notebook using the following command:</p>
<pre><code>(notebook_env) # pip install jupyter</code></pre>
<p>Once the installation is completed, run the Jupyter Notebook with the following command:</p>
<pre><code>(notebook_env) # jupyter notebook --allow-root</code></pre>
<p>Press the <strong>CTRL+C</strong> to stop the Jupyter Notebook.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Generate Jupyter Notebook Password</span></h2>
<p>First, generate a Jupyter Notebook configuration file with the following command:</p>
<pre><code>(notebook_env) # jupyter notebook --generate-config</code></pre>
<p>You should see the following output:</p>
<pre><code>Writing default config to: /root/.jupyter/jupyter_notebook_config.py</code></pre>
<p>Then run the following command and enter your preferred password:</p>
<pre><code>(notebook_env) # jupyter notebook password</code></pre>
<p>Set a password as shown below:</p>
<pre><code>Enter password: 
Verify password: 
[JupyterPasswordApp] Wrote hashed password to /root/.jupyter/jupyter_server_config.json</code></pre>
<p>This can be used to reset a lost password or if you believe your credentials have been leaked and desire to change your password.</p>
<p>You can prepare a hashed password manually, using the function <code>jupyter_server.auth.passwd()</code>:</p>
<pre><code>&gt;&gt;&gt; jupyter_server.auth import passwd
&gt;&gt;&gt; passwd()
Enter password:
Verify password:
'argon2:$argon2id$v=19$m=10240,t=10,p=8$WGqsBZQPacu0FwsczXPlIQ$VXMyCfkJJZETyjdB6aWNSu/t0OrLAVhpkM15wKJYQRU'</code></pre>
<p>Then add the hashed password to your <strong>jupyter_notebook_config.py</strong> file:</p>
<pre><code>nano /root/.jupyter/jupyter_notebook_config.py</code></pre>
<pre><code>c.ServerApp.password = 'argon2:$argon2id$v=19$m=10240,t=10,p=8$WGqsBZQPacu0FwsczXPlIQ$VXMyCfkJJZETyjdB6aWNSu/t0OrLAVhpkM15wKJYQRU'</code></pre>
<p>Now, deactivate from the Python virtual environment with the following command:</p>
<pre><code>deactivate</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Create a Systemd service</span></h2>
<p>Next, it is a good idea to create a systemd service file to handle the <code>Jupyter Notebook</code> service. You can create it with the following command:</p>
<pre class="command"><code spellcheck="false"># nano /lib/systemd/system/jupyter.service</code></pre>
<p>Add the following lines:</p>
<pre><code>[Unit]
Description=Jupyter Notebook

[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/var/www/notebook/notebook_env/bin/jupyter-notebook --config=/root/.jupyter/jupyter_notebook_config.py --allow-root
User=root
Group=root
WorkingDirectory=/var/www/notebook/notebook_env
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target</code></pre>
<p>Save and close the file and then reload the systemd daemon with the following command:</p>
<pre><code># systemctl daemon-reload</code></pre>
<p>Then start the <code>jupyter service</code> and activate it at system startup with the following command:<span id="ezoic-pub-ad-placeholder-112" class="ezoic-adpicker-ad"></span></p>
<pre><code># systemctl start jupyter
# systemctl enable jupyter</code></pre>
<p>Edit the configuration file and enable remote access:</p>
<pre><code>nano /root/.jupyter/jupyter_notebook_config.py</code></pre>
<p>Uncoment and change the following line to <strong>True</strong>:</p>
<pre><code>c.ServerApp.allow_remote_access = True</code></pre>
<p>To implement the changes, you need to restart the <code>jupyter service</code>:</p>
<pre><code># systemctl restart jupyter</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Apache as a Reverse Proxy for Jupyter Notebook</span></h2>
<p>Jupyter Notebook is started and running on port 8888.You can install it via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install apache2</code></pre>
<p>You can verify the status of the Apache service using the <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status apache2</code></pre>
<p>Next run the following commands to enable necessary modules:</p>
<pre><code># /usr/sbin/a2enmod proxy
# /usr/sbin/a2enmod proxy_http</code></pre>
<p>Run the commands below to create a new VirtualHost file called <strong>jupyter</strong> in the /etc/apache2/sites-available/ directory.</p>
<pre><code># nano /etc/apache2/sites-available/jupyter.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code> &lt;VirtualHost *:80&gt;
    ServerAdmin admin@your-domain.com
    DocumentRoot /var/www/html/
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    ProxyPass / http://127.0.0.1:8888/
    ProxyPassReverse / http://127.0.0.1:8888/&gt; 

    ErrorLog /var/log/apache2/your-domain.com-error_log
    CustomLog /var/log/apache2/your-domain.com-access_log common

 &lt;/VirtualHost&gt;</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Then save and exit the configuration file.</p>
<p>To enable this site run the following command:</p>
<pre><code># ln -s /etc/apache2/sites-available/jupyter.conf /etc/apache2/sites-enabled/jupyter.conf</code></pre>
<p>To implement the changes, you need to restart the Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Accessing Jupyter Notebook Web Interface</span></h2>
<p>Open your web browser using the URL <code class=" prettyprinted"><span class="pln">http</span><span class="pun">:</span><span class="com">//<code>your-domain.com</code></span></code>. You should see the Jupyter login page:</p>
<p><img decoding="async" class="aligncenter size-large wp-image-1720" src="https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-900x281.webp" alt="Jupyter Login Page" width="900" height="281" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-900x281.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-300x94.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-768x240.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-1536x480.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-1222x382.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-897x280.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-684x214.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login.webp 1916w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Enter your password and click on the <strong>Login</strong> button. You should see the dashboard on the following screen:</p>
<p><img decoding="async" class="aligncenter size-large wp-image-1721" src="https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-900x416.webp" alt="Jupyter Dashboard" width="900" height="416" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-900x416.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-1536x711.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-1222x565.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-897x415.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard.webp 1915w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed <code>Jupyter Notebook</code> on Debian 12.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://docs.jupyter.org/en/latest/" target="_blank" rel="noopener">the official Jupyter Notebook documentation.</a></p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-jupyter-notebook-on-debian-12/">How to Install Jupyter Notebook on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-jupyter-notebook-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1719</post-id>	</item>
		<item>
		<title>How to Install Odoo 17 on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 13 Nov 2023 17:33:31 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Odoo]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1599</guid>

					<description><![CDATA[<p>Odoo is an open-source suite of business management software applications that encompasses a wide range of business needs, including customer relationship management (CRM), sales, project...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/">How to Install Odoo 17 on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Odoo is an open-source suite of business management software applications that encompasses a wide range of business needs, including customer relationship management (CRM), sales, project management, inventory management, manufacturing, financial management, and more.</p>
<p>It is widely used by businesses of various sizes and across different industries to streamline their operations, improve productivity, and manage their business processes more efficiently. Its flexibility, scalability, and cost-effectiveness make it a popular choice for organizations seeking comprehensive business management solutions.</p>
<p>In this tutorial, we will show you how to install Odoo 17 on Debian 12 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Debian 12</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Then install all the required packages for the Odoo 17 setup on the Debian 12 OS.</p>
<pre><code># apt install python3 python3-dev python3-pip python3-venv python3-setuptools build-essential libzip-dev libxslt1-dev libldap2-dev python3-wheel libsasl2-dev node-less libjpeg-dev xfonts-75dpi xfonts-base libpq-dev libffi-dev fontconfig git wget nodejs npm</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install PostgreSQL </span></h2>
<p>Odoo uses PostgreSQL as a database backend, so you will need to <a href="https://www.linuxtuto.com/how-to-install-postgresql-15-on-debian-11/">install PostgreSQL</a> on your server.</p>
<p>You can run the following command to install the PostgreSQL server:</p>
<pre><code># apt-get install postgresql-15</code></pre>
<p>After the successful installation, start the PostgreSQL service and enable it to start after the system reboot:</p>
<pre><code># systemctl start postgresql
# systemctl enable postgresql</code></pre>
<p>Verify that is active and running on your server:</p>
<pre><code># systemctl status postgresql</code></pre>
<pre><strong>Output</strong>
<code>● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; preset: enabled)
     Active: active (exited)
   Main PID: 18666 (code=exited, status=0/SUCCESS)
        CPU: 2ms</code></pre>
<p>Now create an Odoo user in PostgreSQL:</p>
<pre><code># su - postgres -c "createuser -s odoo" </code></pre>
<p>This will add a new role <strong>odoo</strong> in the PostgreSQL server.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install Node.js</span></h2>
<p>To install Node.js and npm on your Debian OS use the following command:</p>
<pre><code># apt install nodejs npm</code></pre>
<p>Also, install the following module to enable RTL support:</p>
<pre><code># npm install -g rtlcss</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Installation of wkhtmltox</span></h2>
<p>To generate PDF reports successfully, wkhtmltopdf is necessary. PDF reports are a crucial component of any organization.</p>
<p>First install the xfonts dependency before installing wkhtmltopdf:</p>
<pre><code># apt-get install xfonts-75dpi xfonts-base</code></pre>
<p>Now download and install wkhtmltopdf using the following commands:</p>
<pre><code># wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_amd64.deb
# dpkg -i wkhtmltox_0.12.6.1-3.bookworm_amd64.deb</code></pre>
<p>Verify if the wkhtmltopdf installation is successful by checking the version:</p>
<pre><code># wkhtmltopdf --version
wkhtmltopdf 0.12.6.1 (with patched qt)</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Create an Odoo User</span></h2>
<p>Create a new system user for managing the Odoo processes on the Odoo server.</p>
<pre><code># adduser --system --group --home=/opt/odoo --shell=/bin/bash odoo</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Install Odoo</span></h2>
<p>Switch to the user that you have created before to avoid encountering issues related to access rights.</p>
<pre><code># su - odoo</code></pre>
<p>Now, download the Odoo 17 source code from the git repository and install it:</p>
<pre><code># git clone https://www.github.com/odoo/odoo --depth 1 --branch 17.0 /opt/odoo/odoo</code></pre>
<p>Next run the following command to generate a new Python virtual environment.</p>
<pre><code># python3 -m venv odoo-env</code></pre>
<p>Activate the virtual environment with the following command:</p>
<pre><code># source odoo-env/bin/activate</code></pre>
<p>Then install the required Python packages:</p>
<pre><code>(odoo-env) $ pip3 install wheel
(odoo-env) $ pip3 install -r odoo/requirements.txt</code></pre>
<p>After completing the process of installing all requirements to deactivate the virtual environment run the following command:</p>
<pre><code>(odoo-env) $ deactivate</code></pre>
<p>Execute the following command to create a directory for custom addons:</p>
<pre><code># mkdir /opt/odoo/custom-addons</code></pre>
<p>Next exit from the Odoo user:</p>
<pre><code># exit</code></pre>
<p>Create an <code>Odoo</code> log directory and provide it the required write permissions.</p>
<pre><code># mkdir /var/log/odoo
# chown odoo:odoo /var/log/odoo</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Create Odoo Configuration File</span></h2>
<p>Create the <code>Odoo</code> configuration file.</p>
<pre><code># nano /etc/odoo.conf</code></pre>
<p>Then paste the following configuration into it.</p>
<pre><code>[options]
admin_passwd = Strong_admin_Password
db_host = False
db_port = False
db_user = odoo
db_password = False
logfile = /var/log/odoo/odoo-server.log
addons_path = /opt/odoo/odoo/addons,/opt/odoo/custom-addons
xmlrpc_port = 8069</code></pre>
<p>Remember to update the value of the &#8220;<strong><code>Strong_admin_Password</code></strong>&#8221; key above with a more secure password.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Create a Systemd Service File</span></h2>
<p>Create a systemd service file to manage the <code>Odoo</code> service:</p>
<pre><code># nano /etc/systemd/system/odoo.service</code></pre>
<p>Paste the following content into the <code>odoo.service</code> file:</p>
<pre><code>[Unit]
Description=Odoo
Requires=postgresql.service
After=network.target postgresql.service

[Service]
Type=simple
SyslogIdentifier=odoo
PermissionsStartOnly=true
User=odoo
Group=odoo
ExecStart=/opt/odoo/odoo-env/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target</code></pre>
<p>Reload system daemon and start the service:</p>
<pre><code># systemctl daemon-reload
# systemctl start odoo
# systemctl enable odoo</code></pre>
<p>To confirm everything is working normally, check the status of service:</p>
<pre><code># systemctl status odoo</code></pre>
<p>Output:</p>
<pre><code>● odoo.service - Odoo
     Loaded: loaded (/etc/systemd/system/odoo.service; enabled; preset: enabled)
     Active: active (running)
   Main PID: 2270 (python3)
      Tasks: 4 (limit: 2273)
     Memory: 110.0M
        CPU: 1.622s
     CGroup: /system.slice/odoo.service
             └─2270 /opt/odoo/odoo-env/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 9: Access Odoo server</span></h2>
<p>Open your web browser and type <strong>http://your-IP-address:8069</strong> and you will see the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1612" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-900x444.webp" alt="Odoo 17 Create Database Page" width="900" height="444" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-900x444.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-300x148.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-768x379.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-1536x758.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-1222x603.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-897x443.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database-684x338.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_create_database.webp 1914w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Fill the required information and then click the <strong>“Create Database”</strong> button to complete the installation.</p>
<p>After successfully creating the <code>Odoo</code> database, you will be redirected to the login page.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1613" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-900x389.webp" alt="Odoo 17 login page" width="900" height="389" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-900x389.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-300x130.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-768x332.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-1536x664.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-1222x529.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-897x388.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page-684x296.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_login_page.webp 1914w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Enter your login credentials and you will be redirected to apps page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1615" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-900x512.webp" alt="Odoo Dashboard" width="900" height="512" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-900x512.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-768x437.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-1536x874.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-1222x695.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-897x510.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard-684x389.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/odoo17_dashboard.webp 1899w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Odoo 17 on Debian 12. For additional information, you can check <a href="https://www.odoo.com/documentation/17.0/" target="_blank" rel="noopener">the official Odoo 17 documentation</a>.</p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/">How to Install Odoo 17 on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1599</post-id>	</item>
		<item>
		<title>How to Install Python 3.12 on Ubuntu 22.04</title>
		<link>https://www.linuxtuto.com/how-to-install-python-3-12-on-ubuntu-22-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-python-3-12-on-ubuntu-22-04/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 02 Oct 2023 16:30:05 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1560</guid>

					<description><![CDATA[<p>Python is a high-level, interpreted programming language known for its simplicity, readability, and versatility. It is used for a wide range of applications, including web...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-python-3-12-on-ubuntu-22-04/">How to Install Python 3.12 on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Python is a high-level, interpreted programming language known for its simplicity, readability, and versatility. It is used for a wide range of applications, including web development, data analysis, artificial intelligence, scientific computing, automation, and more.</p>
<p>Python&#8217;s versatility and ease of use make it an ideal choice for both beginners and experienced developers. It is often recommended as a first programming language due to its simplicity and readability.</p>
<p>Python 3.12 is the latest stable release of the Python programming language. This tutorial illustrates two methods of how to install it on your Ubuntu 22.04 OS.</p>
<ul>
<li>Install Python 3.12 from the <strong>deadsnakes PPA</strong></li>
<li>Manually build Python 3.12 from the <strong>source code</strong></li>
</ul>
<h2><span class="has-inline-color has-vivid-purple-color">Update Operating System</span></h2>
<p>Update your <b>Ubuntu 22.04</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Method 1: Install Python 3.12 with APT</span></h2>
<p>Installing Python 3.12 on Ubuntu 22.04 using APT is quite easy, a big thumbs up to the <strong>deadsnakes</strong> custom PPA!</p>
<p>This makes it easy to install Python on Ubuntu and be able to receive continued updates, bug fixes, and security updates.</p>
<p>Install the prerequisite for adding custom PPAs:</p>
<pre class="wp-block-code"><code># apt install software-properties-common -y</code></pre>
<p>Then proceed and add the deadsnakes PPA to the APT package manager sources list:</p>
<pre class="wp-block-code"><code># add-apt-repository ppa:deadsnakes/ppa</code></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1562" src="https://www.linuxtuto.com/wp-content/uploads/2023/09/deadsnakes_repo-900x185.webp" alt="Deadsnakes PPA on Ubuntu " width="900" height="185" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/09/deadsnakes_repo-900x185.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/09/deadsnakes_repo-300x62.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/09/deadsnakes_repo-768x158.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/09/deadsnakes_repo-1222x252.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/09/deadsnakes_repo-897x185.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/09/deadsnakes_repo-684x141.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/09/deadsnakes_repo.webp 1306w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Press <strong>Enter</strong> to continue.</p>
<p>Once the repository has been installed, run an APT update to ensure that the newly imported PPA is reflected.</p>
<pre><code># apt update</code></pre>
<p>You can now install Python 3.12 with the following command:</p>
<pre><code># apt install python3.12</code></pre>
<p>To verify the installation and Python 3.12 build version, perform the following:</p>
<pre><code># python3.12 --version
3.12.0</code></pre>
<p>If you have installed Python 3.12 using the APT package manager, the PIP will not be installed by default. To install PIP, run the following command:</p>
<pre><code># curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 </code></pre>
<p>You can check PIP for the Python 3.12 version using the following command:</p>
<div class="code-toolbar">
<pre class="wp-block-prismatic-blocks language-bash"><code class=" language-bash"># pip3.12 -V

pip 23.2.1 from /usr/local/lib/python3.12/site-packages/pip (python 3.12)</code></pre>
</div>
<h2><span class="has-inline-color has-vivid-purple-color">Method 2: Install Python 3.12 from Source</span></h2>
<p>The other alternative to get Python 3.12 installed on your Ubuntu 22.04 OS is by building it from the source code.</p>
<p>With this installation method, the main issue is that you cannot quickly update like the APT package manager and will need to recompile for any changes.</p>
<p>First, install the required prerequisite packages for the compilation of the Python 3.12 source code.</p>
<pre><code># apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev</code></pre>
<p>Now proceed and download the latest release version of Python from the<a href="https://www.python.org/downloads/release/python-3120/" target="_blank" rel="noreferrer noopener"> Python official release page</a>.</p>
<p>Alternatively, copy the download link for Python 3.12 gzipped tarball and use <strong>wget</strong> to pull it with the following command:</p>
<pre class="wp-block-code"><code># wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz</code></pre>
<p>Once done, extract the archive:</p>
<pre><code># tar -xf Python-3.12.0.tgz</code></pre>
<p>Now navigate into the extracted directory and run the <strong>configure</strong> script to check the required dependencies. The <strong>–-enable optimization</strong> flag optimizes the binary by running multiple tests.</p>
<pre class="wp-block-code"><code># cd Python-3.12.*/
# ./configure --enable-optimizations</code></pre>
<p>Now initiate the Python 3.12 build process:</p>
<pre><code># make -j 4</code></pre>
<p>Remember, the<strong> (-j)</strong> corresponds to the number of cores in your system to speed up the build time.</p>
<p>To find out how many cores you have on your system, execute the following code:</p>
<pre><code># nproc</code></pre>
<p>Output:</p>
<pre><code>4</code></pre>
<p>We have four cores, so in the (make) command, we used <strong>(-j 4)</strong>.</p>
<p>Once the build process has been completed, run the following command to complete the Python installation on the Ubuntu 22.04 system.</p>
<p>The <strong>altinstall</strong> prevents the compiler to override default Python versions.</p>
<pre><code># make altinstall</code></pre>
<p>Verify your installation:</p>
<pre><code># python3.12 --version
Python 3.12.0</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Install Python Modules|Extensions on Ubuntu 22.04</span></h2>
<p>Modules and extensions can be installed on Ubuntu 22.04 using the <strong>Python Package manager</strong> (PIP).</p>
<p>Use the syntax below to install a Python module of choice.</p>
<pre><code># pip3.12 install <strong>module-name</strong></code></pre>
<p>In this tutorial, We will show you how to install a Python module <strong>numpy</strong>.</p>
<pre><code># pip3.12 install <strong><span class="has-inline-color has-pale-cyan-blue-color">numpy</span></strong></code></pre>
<p>Output:</p>
<pre><code>Collecting numpy
  Obtaining dependency information for numpy from https://files.pythonhosted.org/packages/e3/e2/4ecfbc4a2e3f9d227b008c92a5d1f0370190a639b24fec3b226841eaaf19/numpy-1.26.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
  Downloading numpy-1.26.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.5/58.5 kB 687.4 kB/s eta 0:00:00
Downloading numpy-1.26.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.9/17.9 MB 1.2 MB/s eta 0:00:00
Installing collected packages: numpy
Successfully installed numpy-1.26.0
</code></pre>
<p>You can verify your module installation using the following command:</p>
<pre class="wp-block-code"><code># pip3.12 list
Package                Version             
---------------------- --------------------
..............
numpy 1.26.0
..............</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Use Python 3.12 as default Python3</span></h2>
<p>First, check the current default version using the below command from the terminal.</p>
<pre><code>python3 --version</code></pre>
<p>Output:</p>
<pre><code>Python 3.10.12</code></pre>
<p>Use update-alternatives to create symbolic links to Python3:</p>
<pre><code>sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1</code></pre>
<pre><code>sudo update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.12 2</code></pre>
<p>And choose which one to use as Python3 via command:</p>
<pre><code>sudo update-alternatives --config python3</code></pre>
<pre><code> Selection    Path                        Priority   Status
------------------------------------------------------------
* 0           /usr/local/bin/python3.12     2        auto mode
  1           /usr/bin/python3.10           1        manual mode
  2           /usr/local/bin/python3.12     2        manual mode
</code></pre>
<p>Press &lt;enter&gt; to keep the current choice[*].</p>
<p>Now check the default version using the below command:</p>
<pre><code># python3 --version</code></pre>
<p>Output:</p>
<pre><code>Python 3.12.0</code></pre>
<p>That is it!  You are now set to use Python 3.12 to build web applications, software development, create workflows e.t.c</p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>In the tutorial, you have learned how to install Python 3.12 on Ubuntu 22.04 using APT or install it using source code.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://docs.python.org/3.12/whatsnew/3.12.html" target="_blank" rel="noopener">the official Python documentation.</a></p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-python-3-12-on-ubuntu-22-04/">How to Install Python 3.12 on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-python-3-12-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1560</post-id>	</item>
		<item>
		<title>How To Install Python 3.10 on Ubuntu 20.04</title>
		<link>https://www.linuxtuto.com/how-to-install-python-3-10-on-ubuntu-20-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-python-3-10-on-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Wed, 05 Jan 2022 17:42:43 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=25</guid>

					<description><![CDATA[<p>Python is an open-source high-level programming language with a large community. It is often used for machine learning, deep learning, computer vision, and data analysis....</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-python-3-10-on-ubuntu-20-04/">How To Install Python 3.10 on Ubuntu 20.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Python is an open-source high-level programming language with a large community. It is often used for machine learning, deep learning, computer vision, and data analysis.</p>
<p>The latest stable release version of Python is 3.10.1 released on December 6, 2021, and it contains many new features and optimizations.</p>
<p>This tutorial illustrates two methods of how to install Python 3.10 on the Ubuntu 20.04 system.</p>
<ul>
<li>Install Python 3.10 from the <strong>deadsnakes PPA</strong></li>
<li>Manually build Python 3.10 from the <strong>source code</strong></li>
</ul>
<h2><span class="has-inline-color has-vivid-purple-color">Update Operating System</span></h2>
<p>Update your <strong>Ubuntu</strong> <strong>20.04</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code>$ sudo apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Method 1: Install Python 3.10 with APT</span></h2>
<p>Installing <code>Python 3.10</code> on Ubuntu 20.04 using APT is quite easy, a big thumbs up to the deadsnakes custom PPA! This makes it easy to install Python on Ubuntu and be able to receive continued updates, bug fixes, and security updates.</p>
<p>Install the prerequisite for adding custom PPAs:</p>
<pre class="wp-block-code"><code>$ sudo apt install software-properties-common -y</code></pre>
<p>Then proceed and add the deadsnakes PPA to the APT package manager sources list:</p>
<pre class="wp-block-code"><code>$ sudo add-apt-repository ppa:deadsnakes/ppa</code></pre>
<figure id="attachment_70" aria-describedby="caption-attachment-70" style="width: 900px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-70 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2022/01/Python-3.10.1-1024x276.jpg" alt="Python 3.10.1" width="900" height="243" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/01/Python-3.10.1-1024x276.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/01/Python-3.10.1-300x81.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/01/Python-3.10.1-768x207.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/01/Python-3.10.1-1222x329.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/01/Python-3.10.1-897x241.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/01/Python-3.10.1-684x184.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/01/Python-3.10.1.jpg 1267w" sizes="auto, (max-width: 900px) 100vw, 900px" /><figcaption id="caption-attachment-70" class="wp-caption-text">Install Python 3.10 on Ubuntu 20.04</figcaption></figure>
<p>Press <strong>Enter</strong> to continue.</p>
<p>Once the repository has been installed, you can now install <code>Python 3.10</code> with the following command:</p>
<pre><code>$ sudo apt install python3.10</code></pre>
<p>To verify the installation and Python 3.10 build version, perform the following:</p>
<pre><code>$ <span class="has-inline-color has-pale-pink-color">python3.10 --version</span>
3.10.1</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Method 2: Install Python 3.10 from Source</span></h2>
<p>The other alternative to get <code>Python 3.10</code> installed on your Ubuntu 20.04 system is by building it from the source code. With this installation method, the main issue is that you cannot quickly update like the APT package manager and will need to recompile for any changes.</p>
<p>First, install the required prerequisite packages for the compilation of the Python 3.10 source code.</p>
<pre><code>$ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev</code></pre>
<p>Now proceed and download the latest release version of Python from the<a href="https://www.python.org/downloads/source/" target="_blank" rel="noreferrer noopener"> Python official release page</a>.</p>
<p>Alternatively, copy the download link for <code>Python 3.10</code> gzipped tarball and use Wget to pull it with the following command:</p>
<pre class="wp-block-code"><code>$ sudo wget https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tgz</code></pre>
<p>Once done, extract the archive:</p>
<pre><code>$ sudo tar -xf Python-3.10.*.tgz</code></pre>
<p>Now navigate into the extracted directory and run the <code>configure</code> script to check the required dependencies. The –<code>-enable optimization</code> flag optimizes the binary by running multiple tests.</p>
<pre class="wp-block-code"><code>cd Python-3.10.*/
./configure --enable-optimizations</code><code>
</code></pre>
<p>Now initiate the Python 3.10 build process:</p>
<pre><code>make -j 4</code></pre>
<p>Remember, the<strong> (-j)</strong> corresponds to the number of cores in your system to speed up the build time.</p>
<p>To find out how many cores you have on your system, execute the following code:</p>
<pre><code>$ nproc</code></pre>
<p>Output:</p>
<pre><code>4</code></pre>
<p>We have four cores, so in the (make) command, we used <strong>(-j 4)</strong>.</p>
<p>Once the build process has been completed, run the following command to complete the Python installation on the Ubuntu 20.04 system.</p>
<p>The <code>altinstall</code> prevents the compiler to override default Python versions.</p>
<pre><code>$ sudo make altinstall</code></pre>
<p>Verify your installation:</p>
<pre><code>$ <span class="has-inline-color has-pale-pink-color">python3.10 --version</span>
Python 3.10.1</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Install Python Modules|Extensions on Ubuntu 20.04.</span></h2>
<p>Modules and extensions can be installed on Ubuntu 20.04 using the <strong>Python Package manager</strong> (PIP).</p>
<p>You can check PIP for the Python 3.10 version using the following command:</p>
<div class="code-toolbar">
<pre class="wp-block-prismatic-blocks language-bash"><code class=" language-bash">$ pip3.10 -V

pip 21.2.4 from /usr/local/lib/python3.10/site-packages/pip <span class="token punctuation">(</span>python 3.10<span class="token punctuation">)</span></code></pre>
</div>
<p>Then use the syntax below to install a Python module of choice.</p>
<pre><code>$ sudo pip3.10 install <strong>module-name</strong></code></pre>
<p>In this tutorial, We will show you how to install a Python module <strong>babel</strong>.</p>
<pre><code>$ sudo pip3.10 install <strong><span class="has-inline-color has-pale-cyan-blue-color">babel</span></strong></code></pre>
<p>Output:</p>
<pre><code>Collecting babel
Downloading Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)
|████████████████████████████████| 8.8 MB 5.2 kB/s
Collecting pytz&gt;=2015.7
Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB)
|████████████████████████████████| 503 kB 6.0 MB/s
Installing collected packages: pytz, babel
Successfully installed babel-2.9.1 pytz-2021.3
</code></pre>
<p>You can verify your module installation using the following command:</p>
<pre class="wp-block-code"><code>$<span class="has-inline-color has-pale-pink-color"> pip3.10 list</span>
Package                Version             
---------------------- --------------------
..............
Babel 2.9.1
..............</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Use Python 3.10 as default Python3</span></h2>
<p>First, check the current default version using the below command from the terminal.</p>
<pre><code>python3 --version</code></pre>
<p>Output:</p>
<pre><code>Python 3.8.10</code></pre>
<p>Use update-alternatives to create symbolic links to python3</p>
<pre><code>sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1</code></pre>
<pre><code>sudo update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.10 2</code></pre>
<p>And choose which one to use as Python3 via command:</p>
<pre><code>sudo update-alternatives --config python3</code></pre>
<pre><code> Selection    Path                        Priority   Status
------------------------------------------------------------
* 0           /usr/local/bin/python3.10     2        auto mode
  1           /usr/bin/python3.8            1        manual mode
  2           /usr/local/bin/python3.10     2        manual mode
</code></pre>
<p>Press &lt;enter&gt; to keep the current choice[*].</p>
<p>Now check the default version using the below command:</p>
<pre><code>python3 --version</code></pre>
<p>Output:</p>
<pre><code>Python 3.10.1</code></pre>
<p>That is it!  You are now set to use Python to build web applications, software development, create workflows e.t.c</p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>In the tutorial, you have learned how to install <code>Python 3.10</code> on Ubuntu 20.04 using APT or install it using source code.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-python-3-10-on-ubuntu-20-04/">How To Install Python 3.10 on Ubuntu 20.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-python-3-10-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">25</post-id>	</item>
	</channel>
</rss>
