<?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 - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 02 Aug 2021 22:06:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install Flask on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-flask-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-flask-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 08 Aug 2021 22:05:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31530</guid>

					<description><![CDATA[<p>Hello, friends. Python application development is at a fairly high point of popularity. This extends to all kinds of applications both web and desktop. Speaking of the web, today we will show you how to install Flask on Ubuntu 20.04 which is a microframework for making web applications with Python. Now I will give you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-flask-ubuntu-20-04/">Install Flask on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. Python application development is at a fairly high point of popularity. This extends to all kinds of applications both web and desktop. Speaking of the web, today we will show you how to install Flask on Ubuntu 20.04 which is a microframework for making web applications with Python.</p>



<p class="has-line-data">Now I will give you a brief introduction</p>



<p class="has-line-data">Flask is a microframework for web applications created in Python. <strong>The “micro” in microframework means Flask aims to keep the core simple but extensible.</strong></p>



<p class="has-line-data">So that’s why this framework becomes very popular for developers who want to have full control of what happens in their application and the process.</p>



<p class="has-line-data">So, today we are going to install it without problems on Ubuntu 20.04</p>



<h2 class="code-line"><a id="Install_Flask_on_Ubuntu_2004_10"></a>Install Flask on Ubuntu 20.04</h2>



<p class="has-line-data">Before you start make sure that the whole system is up to date. To do this run in a terminal:</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">Now, install python along with its dependencies as well as the package needed to create a virtual environment. This way the installation will be more secure.</p>



<pre class="wp-block-preformatted">sudo apt install python3 python3-venv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  python-pip-whl python3.8-venv
The following NEW packages will be installed:
  python-pip-whl python3-venv python3.8-venv
0 upgraded, 3 newly installed, 0 to remove and 19 not upgraded.
Need to get 1,812 kB of archives.
After this operation, 2,350 kB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">Now create a new folder where your Flask project will be located. You can name it whatever you want but I will choose <code>project</code>.</p>



<pre class="wp-block-preformatted">mkdir project
cd project</pre>



<p class="has-line-data">Once in the folder, you need to create the virtual environment with the following command</p>



<pre class="wp-block-preformatted">python3 -m venv venv</pre>



<p class="has-line-data">Now, activate the virtual environment</p>



<pre class="wp-block-preformatted">source venv/bin/activate</pre>



<p class="has-line-data">You will see that the prompt changes and now proceed to install Flask using PIP</p>



<pre class="wp-block-preformatted">pip install Flask</pre>



<p class="has-line-data">After the process finishes you will be able to check the installed version with this command</p>



<pre class="wp-block-preformatted">python -m flask --version
Python 3.8.10
Flask 2.0.1
Werkzeug 2.0.1</pre>



<h2 class="code-line"><a id="Testing_the_Flask_installation_42"></a>Testing the Flask installation</h2>



<p class="has-line-data">As I always say, if we don’t test the installation then we won’t know if the process is correct.</p>



<p class="has-line-data">To do this, create a file with some code. I will call it <code>helloworld.py</code>.</p>



<pre class="wp-block-preformatted">nano helloworld.py</pre>



<p class="has-line-data">Now, add the following code</p>



<pre class="wp-block-preformatted">from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello World! welcome to osradar.com'</pre>



<p class="has-line-data">Save the changes and close the editor.</p>



<p class="has-line-data">Now, export the <code>FLASK_APP</code> variable.</p>



<pre class="wp-block-preformatted">export FLASK_APP=helloworld.py</pre>



<p class="has-line-data">Now, if you are using Flask on a local computer, you can test it with the following command</p>



<pre class="wp-block-preformatted">flask run
 * Serving Flask app 'helloworld.py' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)</pre>



<p class="has-line-data">Now open your web browser, and go to <code>http://127.0.0.1</code> and you will see the following</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1366" height="682" src="https://www.osradar.com/wp-content/uploads/2021/08/1-1024x511.png" alt="1.- Flask running on Ubuntu 20.04" class="wp-image-31577" srcset="https://www.osradar.com/wp-content/uploads/2021/08/1-1024x511.png 1024w, https://www.osradar.com/wp-content/uploads/2021/08/1-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/1-768x383.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/1-696x347.png 696w, https://www.osradar.com/wp-content/uploads/2021/08/1-1068x533.png 1068w, https://www.osradar.com/wp-content/uploads/2021/08/1.png 1366w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption>1.- Flask running on Ubuntu 20.04</figcaption></figure>



<p class="has-line-data">In case you have installed Flask on a remote server you can specify a host</p>



<pre class="wp-block-preformatted">flask run -host=0.0.0.0</pre>



<p class="has-line-data">So, enjoy it. Flask is well installed.</p>



<h2 class="code-line"><a id="Conclusion_72"></a>Conclusion</h2>



<p class="has-line-data">Flask is a good framework that allows us to start web development in Python. This way you can use it in your projects. Now that you know how to install it in Ubuntu 20.04 without problems.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-flask-ubuntu-20-04/">Install Flask on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-flask-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Pylint on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-pylint-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-pylint-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 07 Jul 2021 00:19:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31096</guid>

					<description><![CDATA[<p>Hello, friends. If you are a Python developer then you should know how to install PyLint on Ubuntu 20.04. This tool adds an extra layer to help the developer to have clean and bug-free code. What is PyLint? According to the PyLint website: Pylint is a Python static code analysis tool which looks for programming [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pylint-ubuntu-20-04/">Install Pylint on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. If you are a Python developer then you should know how to install PyLint on Ubuntu 20.04. This tool adds an extra layer to help the developer to have clean and bug-free code.</p>



<h2 class="code-line"><a id="What_is_PyLint_2"></a>What is PyLint?</h2>



<p class="has-line-data">According to the <a href="https://www.pylint.org/" target="_blank" rel="noreferrer noopener">PyLint website</a>:</p>



<blockquote class="wp-block-quote"><p class="has-line-data" data-line-start="6" data-line-end="7">Pylint is a Python static code analysis tool which looks for programming errors, helps enforcing a coding standard, sniffs for code smells, and offers simple refactoring suggestions.</p></blockquote>



<p class="has-line-data">It’s highly configurable, having special pragmas to control its errors and warnings from within your code, as well as from an extensive configuration file. It is also possible to write your plugins for adding your checks or for extending pylint in one way or another.</p>



<p class="has-line-data">One of the great advantages of using PyLint is that it is open-source and free. So you can include it in a wide variety of projects. Also, it integrates seamlessly with many popular IDEs so you can use it without any problems. Moreover, you can use it as a standalone application to increase the flexibility of your application.</p>



<p class="has-line-data">Some of the main features are:</p>



<ul><li class="has-line-data" data-line-start="14" data-line-end="15"><strong>Error detection</strong> so you can further refine the code you write.</li><li class="has-line-data" data-line-start="15" data-line-end="16"><strong>Fully customizable</strong> The main configuration is in a text file that you can configure to your liking.</li><li class="has-line-data" data-line-start="16" data-line-end="18"><strong>Continuous integration</strong> This means that PyLint can be integrated with tools like Jenkins or Hudson.</li></ul>



<p class="has-line-data">And many more…</p>



<p class="has-line-data"><strong>PyLint for its analysis uses Python PEP8</strong> so we are talking about almost a standard in the development with this language.</p>



<p class="has-line-data">So, let’s start.</p>



<h2 class="code-line"><a id="Install_PyLint_on_Ubuntu_2004_24"></a>Install PyLint on Ubuntu 20.04</h2>



<p class="has-line-data">The installation is quite simple for the powerful and useful tool. So, open a terminal and as always, update the entire distribution.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p class="has-line-data">Now install some<a href="https://www.osradar.com/how-to-install-pip-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener"> Python tools like PIP.</a> I imagine you already have it installed, but still, in case you don’t, just in case you do not.</p>



<pre class="wp-block-preformatted">sudo apt install python3-pip python3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libc-dev-bin libc6-dev libcrypt-dev libexpat1-dev libpython3-dev libpython3.8 libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib linux-libc-dev
  python-pip-whl python3-wheel python3.8 python3.8-dev python3.8-minimal zlib1g-dev
Suggested packages:
  glibc-doc manpages-dev python3.8-venv python3.8-doc binutils binfmt-support
Recommended packages:
  manpages-dev build-essential
The following NEW packages will be installed:
  libc-dev-bin libc6-dev libcrypt-dev libexpat1-dev libpython3-dev libpython3.8-dev linux-libc-dev python-pip-whl python3-dev python3-pip python3-wheel python3.8-dev
  zlib1g-dev
The following packages will be upgraded:
  libpython3.8 libpython3.8-minimal libpython3.8-stdlib python3.8 python3.8-minimal
5 upgraded, 13 newly installed, 0 to remove and 66 not upgraded.
Need to get 16.9 MB of archives.
After this operation, 52.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p class="has-line-data">Before using PIP then it’s a good idea to update it so you don’t have any problems with it. So, you can do it in the following way:</p>



<pre class="wp-block-preformatted">pip3 install -U pip</pre>



<p class="has-line-data">Check the installed version of PIP with the command:</p>



<pre class="wp-block-preformatted">pip3 --version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)</pre>



<p class="has-line-data">Now you can install PyLint by running the following command:</p>



<pre class="wp-block-preformatted">pip3 install pylint
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)</pre>



<p class="has-line-data">This will install it and to check the installed version you just need to run</p>



<pre class="wp-block-preformatted">pylint --version</pre>



<p class="has-line-data">Output</p>



<pre class="wp-block-preformatted">pylint 2.9.3
astroid 2.6.2
Python 3.8.10 (default, Jun 2 2021, 10:49:15)
GCC 9.4.0</pre>



<p class="has-line-data">Now yes, the tool is installed without problems.</p>



<h2 class="code-line"><a id="Basic_use_of_PyLint_61"></a>Basic use of PyLint</h2>



<p class="has-line-data">The program has a very simple terminal interface that allows us to use it without any problems.</p>



<p class="has-line-data">The basic usage is as follows</p>



<pre class="wp-block-preformatted">pylint [options] modules_or_packages</pre>



<p class="has-line-data">It is also possible to analyze Python files, with a few restrictions</p>



<pre class="wp-block-preformatted">pylint mymodule.py</pre>



<p class="has-line-data">It is also possible to call Pylint from another Python program</p>



<pre class="wp-block-preformatted">import pylint.lint
pylint_opts = ['--version']]
pylint.lint.Run(pylint_opts)</pre>



<p class="has-line-data">In this way, we can analyze our code, and using the screen output you will be able to notice the necessary changes. An example of how the screen output of the application looks like is as follows</p>



<pre class="wp-block-preformatted">file.py:1:0: W0301: Unnecessary semicolon</pre>



<p class="has-line-data">So you have to update it and fix what you need to do.</p>



<h2 class="code-line"><a id="Conclusion_85"></a>Conclusion</h2>



<p class="has-line-data">In this post, you have met a very useful tool in Python development that we can take advantage of quickly and easily by installing it.</p>



<p class="has-line-data">Enjoy it</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pylint-ubuntu-20-04/">Install Pylint on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-pylint-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PIP on Fedora 34?</title>
		<link>https://www.osradar.com/install-pip-fedora-34/</link>
					<comments>https://www.osradar.com/install-pip-fedora-34/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 11 Jun 2021 23:59:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[python]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=30548</guid>

					<description><![CDATA[<p>Hello, friends. We are giving good support to Fedora 34. That&#8217;s why today we will show you how to install PIP on Fedora 34 and get it ready for you to use comfortably. What is PIP? Pip is a package manager for Python projects. Thanks to it we will be able to install many libraries, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pip-fedora-34/">How to install PIP on Fedora 34?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. We are giving good support to Fedora 34. That&#8217;s why today we will show you how to install PIP on Fedora 34 and get it ready for you to use comfortably.</p>



<h2>What is PIP?</h2>



<p>Pip is a package manager for Python projects. Thanks to it we will be able to install many libraries, programs, and tools simply as if it were a system package.</p>



<p>But the most interesting utility of PIP is that by creating a Python virtual environment, we can use it to install programs in the path of the project without affecting other projects or the system itself.</p>



<p>The operation is similar to that of a package manager like <a href="https://www.osradar.com/apt-the-ubuntu-package-manager/" target="_blank" rel="noreferrer noopener">APT</a>, DNF, or <a href="https://www.osradar.com/how-to-use-the-zypper-command/" target="_blank" rel="noreferrer noopener">Zypper</a> because we can install, uninstall and update Python packages from the <a href="https://pypi.org/project/pip/" target="_blank" rel="noreferrer noopener">PIP repositories</a>.</p>



<p>So, let&#8217;s install it and get it ready for you to use without any problems.</p>



<h2>Install Pip on Fedora 34</h2>



<p>The installation will be done using the terminal. So, open a new session from the main menu. When you have opened the terminal, you can update the distribution by running</p>



<pre class="wp-block-preformatted">sudo dnf update</pre>



<p>Then, you can perform a search in the Fedora repositories.</p>



<pre class="wp-block-preformatted">sudo dnf search pip</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="359" src="https://www.osradar.com/wp-content/uploads/2021/06/1-5-1024x359.png" alt="1.- Searching for PIP on Fedora 34" class="wp-image-30551" srcset="https://www.osradar.com/wp-content/uploads/2021/06/1-5-1024x359.png 1024w, https://www.osradar.com/wp-content/uploads/2021/06/1-5-300x105.png 300w, https://www.osradar.com/wp-content/uploads/2021/06/1-5-768x269.png 768w, https://www.osradar.com/wp-content/uploads/2021/06/1-5-696x244.png 696w, https://www.osradar.com/wp-content/uploads/2021/06/1-5-1068x375.png 1068w, https://www.osradar.com/wp-content/uploads/2021/06/1-5.png 1311w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Searching for PIP on Fedora 34</figcaption></figure>



<p>And you will get a wide range of output per screen, but the best results are in the following one:</p>



<p>In this case, the package is <code>python3-pip</code> which we will have to install using DNF</p>



<pre class="wp-block-preformatted">sudo dnf install python3-pip</pre>



<p>This will start the installation which should not take too long.</p>



<p>In the end, you can check the installed version</p>



<pre class="wp-block-preformatted">pip3 --version</pre>



<p>Sample Output</p>



<pre class="wp-block-preformatted">pip 21.0.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)</pre>



<p>Although PIP is ready to use, you should always work with the latest version available. So, using it we can upgrade to the latest version.</p>



<p>So, to update PIP, run the following command:</p>



<pre class="wp-block-preformatted">sudo -H pip3 install -U pip
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Requirement already satisfied: pip in /usr/lib/python3.9/site-packages (21.0.1)
Collecting pip
  Downloading pip-21.1.2-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 7.4 MB/s 
Installing collected packages: pip
Successfully installed pip-21.1.2</pre>



<p>This way, we will have the latest version of PIP.</p>



<pre class="wp-block-preformatted">pip3 --version<br>pip 21.1.2 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)</pre>



<p>Now yes, PIP is ready for battle.</p>



<h2>Conclusion</h2>



<p>PIP is a useful and basic tool in daily work with Python. So installing it should be a must for almost any programmer and sysadmin. As you may have noticed, the process is quite simple and anyone can complete it without any problem.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pip-fedora-34/">How to install PIP on Fedora 34?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-pip-fedora-34/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Jupyter on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-jupyter-ubuntu/</link>
					<comments>https://www.osradar.com/install-jupyter-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 11 Jun 2021 06:38:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Jupyter]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[python]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=30530</guid>

					<description><![CDATA[<p>Hello friends. Having a tool like Jupyter Notebook can be something very useful that we should take into account. So in this post, you will learn how to install it. According to the official site of the Jupyter project: The Jupyter Notebook is an open-source web application that allows you to create and share documents [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-jupyter-ubuntu/">Install Jupyter on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello friends. Having a tool like Jupyter Notebook can be something very useful that we should take into account. So in this post, you will learn how to install it.</p>



<p>According to the official site of the <a href="https://jupyter.org/" target="_blank" rel="noreferrer noopener">Jupyter project</a>:</p>



<blockquote class="wp-block-quote"><p>The 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. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.</p></blockquote>



<p>The program is run from the client web application that works in any standard browser. The prerequisite is to install and run the Jupyter Notebook server on the system. Documents created in Jupyter can be exported, among other formats, to HTML, PDF, Markdown, or Python and can also be shared with other users by e-mail, using Dropbox or GitHub, or via the integrated Jupyter Notebook viewer.</p>



<p>The installation is quite simple although it requires a series of steps.</p>



<p>So, let’s get started.</p>



<h2 id="install-jupyter-notebook-on-ubuntu-20.04"><a href="#install-jupyter-notebook-on-ubuntu-20.04" name="install-jupyter-notebook-on-ubuntu-20.04"></a>Install Jupyter Notebook on Ubuntu 20.04</h2>



<p>Before starting, in a terminal environment, make sure Ubuntu is fully updated.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>This will get you started.</p>



<h3 id="install-python-libraries-and-python-pip"><a href="#install-python-libraries-and-python-pip" name="install-python-libraries-and-python-pip"></a>Install Python libraries and Python PIP</h3>



<p>Next, it is necessary to install Python and some of its libraries along with <code><a href="https://www.osradar.com/how-to-install-pip-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">PIP</a></code>. To do this, run the following command</p>



<pre class="wp-block-preformatted">sudo apt install python3-pip python3-dev</pre>



<p>Before using PIP it is advisable to update it so that you do not face package problems.</p>



<pre class="wp-block-preformatted">sudo -H pip3 install --upgrade pip</pre>



<p>Check the new version of <code>PIP</code> with the command:</p>



<pre class="wp-block-preformatted">pip --version
pip 21.1.2 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)</pre>



<p>Now, using <code>PIP</code> install the <code>virtualenv</code> package with which we can create virtualized environments.</p>



<pre class="wp-block-preformatted">sudo -H pip3 install virtualenv</pre>



<p>Now we have the requirements to proceed to install Jupyter.</p>



<h3 id="install-jupyter-notebook-on-ubuntu-20.04"><a href="#install-jupyter-notebook-on-ubuntu-20.04" name="install-jupyter-notebook-on-ubuntu-20.04"></a>Install Jupyter Notebook on Ubuntu 20.04</h3>



<p>First, create a folder where the installation will be installed. I will call it <code>notebook</code> but you can choose any name.</p>



<pre class="wp-block-preformatted">mkdir notebook
cd notebook</pre>



<p>Now create a new python environment, called <code>jupyter</code>.</p>



<pre class="wp-block-preformatted">virtualenv jupyter
created virtual environment CPython3.8.5.final.0-64 in 963ms
  creator CPython3Posix(dest=/home/angelo/notebook/jupyter, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/angelo/.local/share/virtualenv)
    added seed packages: pip==21.1.2, setuptools==57.0.0, wheel==0.36.2
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator</pre>



<p>And then, activate the environment</p>



<pre class="wp-block-preformatted">source jupyter/bin/activate</pre>



<p>Now yes, with the help of <code>PIP</code> install Jupyter</p>



<pre class="wp-block-preformatted">pip install jupyter</pre>



<p>After that, run Jupyter with the following command</p>



<pre class="wp-block-preformatted">jupyter notebook
[I 18:39:20.257 NotebookApp] Writing notebook server cookie secret to /home/angelo/.local/share/jupyter/runtime/notebook_cookie_secret
[I 18:39:20.570 NotebookApp] Serving notebooks from local directory: /home/angelo/notebook
[I 18:39:20.570 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 18:39:20.570 NotebookApp] http://localhost:8888/?token=78f2898d7e50f76247a54d04de84f70ff9c157f71e4f3275
[I 18:39:20.570 NotebookApp]  or http://127.0.0.1:8888/?token=78f2898d7e50f76247a54d04de84f70ff9c157f71e4f3275
[I 18:39:20.570 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 18:39:20.574 NotebookApp] No web browser found: could not locate runnable browser.</pre>



<p>On the output screen, you will have the information that you can access from the browser but we can configure Jupyter to make it more secure and personal.</p>



<h3 id="configuring-jupyter"><a href="#configuring-jupyter" name="configuring-jupyter"></a>Configuring Jupyter</h3>



<p>Press the <code>CTRL</code> + <code>C</code> keys to finish running Jupyter.</p>



<p>Once you have done this, generate a default configuration file by running:</p>



<pre class="wp-block-preformatted">jupyter notebook --generate-config
Writing default config to: /home/angelo/.jupyter/jupyter_notebook_config.py</pre>



<p>Then, modify it so that you can access it from any host or network. If you will be using Jupyter on your computer locally, skip this step.</p>



<pre class="wp-block-preformatted">nano /home/angelo/.jupyter/jupyter_notebook_config.py</pre>



<p>Find the <code>c.NotebookApp.allow_remote_access</code> line and set it to <code>True</code>.</p>



<pre class="wp-block-preformatted">c.NotebookApp.allow_remote_access = True</pre>



<p>Save the changes and close the editor.</p>



<p>Then, generate a password that will help us to secure the Jupyter instance.</p>



<pre class="wp-block-preformatted">jupyter notebook password
Enter password:
Verify password:
[NotebookPasswordApp] Wrote hashed password to /home/angelo/.jupyter/jupyter_notebook_config.json</pre>



<p>Now run it and from a web browser, you will be able to log in.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/06/1-4-1024x502.png" alt="1.- Access to Jupyter" class="wp-image-30531" srcset="https://www.osradar.com/wp-content/uploads/2021/06/1-4-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/06/1-4-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/06/1-4-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/06/1-4-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/06/1-4-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/06/1-4.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Access to Jupyter</figcaption></figure>



<p>After entering the password you have defined, you can start working.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/06/2-3-1024x502.png" alt="2.- Jupyter on Ubuntu 20.04" class="wp-image-30532" srcset="https://www.osradar.com/wp-content/uploads/2021/06/2-3-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/06/2-3-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/06/2-3-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/06/2-3-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/06/2-3-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/06/2-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Jupyter on Ubuntu 20.04</figcaption></figure>



<p>Enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Jupyter is a very productive tool that we can easily install on any computer thanks to PIP. This way we can take advantage of its features and make it our own.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-jupyter-ubuntu/">Install Jupyter on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-jupyter-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Anaconda on Ubuntu 20.04 / Debian 10?</title>
		<link>https://www.osradar.com/install-anaconda-debian/</link>
					<comments>https://www.osradar.com/install-anaconda-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 13 Apr 2021 00:14:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[anaconda]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28173</guid>

					<description><![CDATA[<p>Hello, friends. This post will help you to learn how to install Anaconda on Ubuntu 20.04 / Debian 10 this tool is quite useful in scientific or laboratory environments. Anaconda To get a more precise idea of Anaconda, I will quote some text excerpts from the project’s website: With Anaconda’s platform, you can build and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-anaconda-debian/">How to install Anaconda on Ubuntu 20.04 / Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. This post will help you to learn how to install Anaconda on Ubuntu 20.04 / Debian 10 this tool is quite useful in scientific or laboratory environments.</p>



<h2 id="anaconda"><a href="#anaconda" name="anaconda"></a>Anaconda</h2>



<p>To get a more precise idea of Anaconda, I will quote some text excerpts from the <a href="https://www.anaconda.com/" target="_blank" rel="noreferrer noopener">project’s website</a>:</p>



<blockquote class="wp-block-quote"><p>With Anaconda’s platform, you can build and deploy deep learning models that use neural networks. Anaconda easily integrates with tools like TensorFlow and Keras so you can build and train neural network models, including convolutional neural networks (CNNs) and generative adversarial networks (GANs).</p></blockquote>



<p>On the other hand:</p>



<blockquote class="wp-block-quote"><p>The Python ecosystem of data visualization tools is vast. With Anaconda, your data science team can find the right visualization tool for any data set, from manufacturing output to seismic activity. They will have the power to build and deploy beautiful dashboards and get them into the hands of decision makers quickly with our one-click deployment technology.</p></blockquote>



<p>In other words, with Anaconda we can install and deploy data science and advanced computing environments from <a href="https://www.osradar.com/install-python-3-9-ubuntu-20-04-18-04/" target="_blank" rel="noreferrer noopener">Python</a>.</p>



<h2 id="install-anaconda-on-ubuntu-20.04"><a name="install-anaconda-on-ubuntu-20.04" href="#install-anaconda-on-ubuntu-20.04"></a>Install Anaconda on Ubuntu 20.04 / Debian 10</h2>



<p>In this post, we will use the terminal as a quicker and more direct method.</p>



<p>So, open one and update Ubuntu 20.04 / Debian 10</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Next is to download the Anaconda installation script which can be obtained using the following command:</p>



<pre class="wp-block-preformatted">cd /tmp/
wget -c https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh</pre>



<p>Of course, the above command needs to be updated to the latest version of Anaconda. So, visit <a href="https://www.anaconda.com/products/individual#Downloads" target="_blank" rel="noreferrer noopener">this link</a> and check which one it is by right-clicking on the download button. There you will get the link that you can paste after <code>wget -c</code>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="371" src="https://www.osradar.com/wp-content/uploads/2021/01/1-13-1024x371.png" alt="1.- Download Anaconda" class="wp-image-28222" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-13-1024x371.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/1-13-300x109.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-13-768x278.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-13-696x252.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/1-13-1068x387.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/1-13.png 1357w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Download Anaconda</figcaption></figure>



<p>After it finishes downloading, we have to run it with the bash command.</p>



<pre class="wp-block-preformatted">bash Anaconda3-2020.11-Linux-x86_64.sh</pre>



<p>First, accept the license terms.</p>



<pre class="wp-block-preformatted">Welcome to Anaconda3 <span class="hljs-number">2020.11</span>
In order to <span class="hljs-built_in">continue</span> the installation process, please review the license
agreement.
Please, press ENTER to <span class="hljs-built_in">continue</span>
&gt;&gt;&gt;
<code class="bash" data-origin="<pre><code class=&quot;bash&quot;>Welcome to Anaconda3 2020.11

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>

Do you accept the license terms? [yes|no]
[no] >>>
</code></pre>
<p>">Do you accept the license terms? [yes|no]
[no] &gt;&gt;&gt;
</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="527" src="https://www.osradar.com/wp-content/uploads/2021/01/2-13-1024x527.png" alt="2.- License terms" class="wp-image-28224" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2-13-1024x527.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2-13-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2-13-768x396.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2-13-696x358.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2-13-1068x550.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2-13.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- License terms</figcaption></figure>



<pre id="block-b7fc6efc-1102-425d-937e-c1950d47c91b" class="wp-block-preformatted">Then set an installation directory. It can be the one you want, or you can even leave the one proposed by the installer.</pre>



<pre class="wp-block-preformatted">Anaconda3 will now be installed into this location:
/home/angelo/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
<code class="bash" data-origin="<pre><code class=&quot;bash&quot;>Anaconda3 will now be installed into this location:
/home/angelo/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/home/angelo/anaconda3] >>>
</code></pre>
<p>">[/home/angelo/anaconda3] &gt;&gt;&gt;</code></pre>



<p>Next, you have the option to make Anaconda run immediately with the <code>conda init</code> command.</p>



<pre class="wp-block-preformatted">Preparing transaction: <span class="hljs-keyword">done</span>
Executing transaction: <span class="hljs-keyword">done</span>
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] &gt;&gt;&gt; yes</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="816" height="319" src="https://www.osradar.com/wp-content/uploads/2021/01/3-11.png" alt="3.- Anaconda on Ubuntu 20.04 / Debian 10" class="wp-image-28225" srcset="https://www.osradar.com/wp-content/uploads/2021/01/3-11.png 816w, https://www.osradar.com/wp-content/uploads/2021/01/3-11-300x117.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/3-11-768x300.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/3-11-696x272.png 696w" sizes="(max-width: 816px) 100vw, 816px" /><figcaption>3.- Anaconda on Ubuntu 20.04 / Debian 10</figcaption></figure>



<p>There, the installation will finish without any problems.</p>



<p>To apply all the changes to the shell and make the conda command available system-wide, run the command:</p>



<pre class="wp-block-preformatted">source ~/.bashrc</pre>



<p>Anaconda is now ready for battle.</p>



<p>You can test the <code>conda</code> command by running:</p>



<pre class="wp-block-preformatted">conda info
active environment : None
             shell level : 0
        user config file : /home/angelo/.condarc
  populated config files : 
           conda version : 4.9.2
     conda-build version : 3.20.5
          python version : 3.8.5.final.0
        virtual packages : __glibc=2.31=0
                           __unix=0=0
                           __archspec=1=x86_64
        base environment : /home/angelo/anaconda3  (writable)
            channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                           https://repo.anaconda.com/pkgs/main/noarch
                           https://repo.anaconda.com/pkgs/r/linux-64
                           https://repo.anaconda.com/pkgs/r/noarch
           package cache : /home/angelo/anaconda3/pkgs
                           /home/angelo/.conda/pkgs
        envs directories : /home/angelo/anaconda3/envs
                           /home/angelo/.conda/envs
                platform : linux-64
              user-agent : conda/4.9.2 requests/2.24.0 CPython/3.8.5 Linux/5.4.0-56-generic ubuntu/20.04.2 glibc/2.31
                 UID:GID : 1000:1000
              netrc file : None
            offline mode : False</pre>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Anaconda in professional environments is quite an ideal solution for many people who make this their profession. The best thing is that we can install it on Ubuntu 20.04 / Debian 10 very easily and take full advantage of it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-anaconda-debian/">How to install Anaconda on Ubuntu 20.04 / Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-anaconda-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Python 3.9 on Debian 10?</title>
		<link>https://www.osradar.com/install-python-3-9-debian/</link>
					<comments>https://www.osradar.com/install-python-3-9-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 30 Mar 2021 23:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[python]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19295</guid>

					<description><![CDATA[<p>Hi, folks. Debian 10 has been with us for a while now and some of its packages are starting to get old, including Python. In this post, I will show you how to install Python 3.9 on Debian 10 Python is one of the most popular programming languages out there. Its incredible versatility makes it [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-python-3-9-debian/">How to install Python 3.9 on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi, folks. Debian 10 has been with us for a while now and some of its packages are starting to get old, including Python. I<strong>n this post, I will show you how to install Python 3.9 on Debian 10<br />
</strong></p>
<p><a href="https://www.python.org/" target="_blank" rel="noopener noreferrer">Python</a> is one of the most popular programming languages out there. Its incredible versatility makes it be in almost any technology field. In addition, its learning curve is quite low which makes it ideal for learning.</p>
<p>The truth is that <a href="https://www.osradar.com/tag/buster/" target="_blank" rel="noopener noreferrer">Debian 10</a> is in its best moment of stability, but also some of its packages are starting to get old. That&#8217;s why some people update some of them individually. Especially the most important ones for work.</p>
<p>Therefore, if a developer wants to take advantage of the features of Python 3.9 in Debian 10, he has to update it.</p>
<p>So let&#8217;s go for it.</p>
<h2>Install Python 3.9 on Debian 10</h2>
<p>Debian 10 comes with Python 3.6 by default. It&#8217;s a good version but it&#8217;s starting to get a bit outdated. However, its dependencies will help us install the new version of Python.</p>
<p>So, first, enable the source code repository in APT. This repository will help us to install all the dependencies of Python 3.9 in a very easy way.</p>
<p>To do this, open a terminal and edit the APT source file.</p>
<pre>:~$ sudo nano /etc/apt/sources.list</pre>
<p>And check that the next line is not already enabled:</p>
<pre>deb-src http://deb.debian.org/debian buster main contrib non-free</pre>
<p>If it&#8217;s not in the file, add it.</p>
<p><figure id="attachment_29317" aria-describedby="caption-attachment-29317" style="width: 820px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29317 size-full" src="https://www.osradar.com/wp-content/uploads/2020/04/1-29.png" alt="1.- enable the source packages" width="820" height="133" srcset="https://www.osradar.com/wp-content/uploads/2020/04/1-29.png 820w, https://www.osradar.com/wp-content/uploads/2020/04/1-29-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/1-29-768x125.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/1-29-696x113.png 696w" sizes="(max-width: 820px) 100vw, 820px" /><figcaption id="caption-attachment-29317" class="wp-caption-text">1.- enable the source packages</figcaption></figure></p>
<p>Then save the changes with CTRL + O and close the file with CTRL + X.</p>
<p>Note: in my case, I&#8217;m using an alternative mirror to the official one.</p>
<p>Next, update the APT cache to recognize the added repository.</p>
<pre>:~$ sudo apt update</pre>
<p>And with the following command, you install all the dependencies of Python 3.7 which are the same for Python 3.9</p>
<pre>sudo apt-get build-dep python3.7
Reading package lists... Done
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following NEW packages will be installed:
autoconf automake autopoint autotools-dev binutils binutils-common binutils-x86-64-linux-gnu blt-dev build-essential cpp cpp-8 debhelper dh-autoreconf
dh-strip-nondeterminism diffstat docutils-common dpkg-dev dwz fontconfig-config fonts-dejavu-core g++ g++-8 gcc gcc-8 gettext intltool-debian libarchive-zip-perl
libasan5 libatomic1 libbinutils libbluetooth-dev libbluetooth3 libbz2-dev libc-dev-bin libc6-dev libcc1-0 libcroco3 libdb-dev libdb5.3-dev libdpkg-perl
libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libexpat1-dev libffi-dev libfile-stripnondeterminism-perl libfontconfig1
libfontconfig1-dev libfontenc1 libfreetype6-dev libgcc-8-dev libgdbm-compat4 libgdbm-dev libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgomp1
libgpm2 libice-dev libice6 libisl19 libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore libllvm7 liblsan0 liblzma-dev libmpc3 libmpdec-dev libmpfr6 libmpx2
libncurses-dev libncursesw5-dev libpciaccess0 libperl5.28 libpixman-1-0 libpng-dev libpthread-stubs0-dev libquadmath0 libreadline-dev libsensors-config libsensors5
libsigsegv2 libsm-dev libsm6 libsqlite3-dev libssl-dev libstdc++-8-dev libtcl8.6 libtext-unidecode-perl libtk8.6 libtool libtsan0 libubsan1 libunwind8 libx11-6
libx11-data libx11-dev libx11-xcb1 libxau-dev libxau6 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcb1 libxcb1-dev libxdamage1
libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxfixes3 libxfont2 libxft-dev libxft2 libxkbfile1 libxml-libxml-perl libxml-namespacesupport-perl libxml-sax-base-perl
libxml-sax-perl libxmu6 libxmuu1 libxpm4 libxrender-dev libxrender1 libxshmfence1 libxss-dev libxss1 libxt-dev libxt6 libxxf86vm1 linux-libc-dev m4 make perl
pkg-config po-debconf python-babel-localedata python3-alabaster python3-babel python3-distutils python3-docutils python3-imagesize python3-lib2to3 python3-packaging
python3-pygments python3-pyparsing python3-roman python3-sphinx python3-tz quilt sgml-base sharutils sphinx-common tcl tcl-dev tcl8.6 tcl8.6-dev tex-common texinfo
time tk tk-dev tk8.6 tk8.6-blt2.5 tk8.6-dev uuid-dev x11-common x11-xkb-utils x11proto-core-dev x11proto-dev x11proto-scrnsaver-dev x11proto-xext-dev xauth xml-core
xorg-sgml-doctools xserver-common xtrans-dev xvfb zlib1g-dev
The following packages will be upgraded:
libssl1.1
1 upgraded, 190 newly installed, 0 to remove and 24 not upgraded.
Need to get 114 MB of archives.
After this operation, 567 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>
<p><figure id="attachment_29318" aria-describedby="caption-attachment-29318" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29318 size-full" src="https://www.osradar.com/wp-content/uploads/2020/04/2-21.png" alt="2.- Installing the Python 3.9 dependencies" width="1365" height="479" srcset="https://www.osradar.com/wp-content/uploads/2020/04/2-21.png 1365w, https://www.osradar.com/wp-content/uploads/2020/04/2-21-300x105.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/2-21-1024x359.png 1024w, https://www.osradar.com/wp-content/uploads/2020/04/2-21-768x270.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/2-21-696x244.png 696w, https://www.osradar.com/wp-content/uploads/2020/04/2-21-1068x375.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-29318" class="wp-caption-text">2.- Installing the Python 3.9 dependencies</figcaption></figure></p>
<p>Then, download Python 3.9.</p>
<pre>:~$ cd /tmp
:~$ sudo wget https://www.python.org/ftp/python/3.9.2/Python-3.9.2.tgz</pre>
<p>After that, decompress the file.</p>
<pre>:~$ tar xzvf Python-3.9.2.tgz</pre>
<p>Now access the generated folder and start the configuration.</p>
<pre>:~$ cd Python-3.9.2/
:~$ sudo ./configure --enable-optimizations</pre>
<p><figure id="attachment_19336" aria-describedby="caption-attachment-19336" style="width: 1001px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-19336" src="https://www.osradar.com/wp-content/uploads/2020/03/3-26.png" alt="3.- Configuring python on Ubuntu" width="1001" height="683" srcset="https://www.osradar.com/wp-content/uploads/2020/03/3-26.png 1001w, https://www.osradar.com/wp-content/uploads/2020/03/3-26-300x205.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/3-26-768x524.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/3-26-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2020/03/3-26-696x475.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/3-26-616x420.png 616w" sizes="(max-width: 1001px) 100vw, 1001px" /><figcaption id="caption-attachment-19336" class="wp-caption-text">3.- Configuring python on Ubuntu</figcaption></figure></p>
<p>The <code>--enable-optimizations</code> parameter is used to obtain an optimized Python construction. It is optional but recommended.</p>
<p>Now you can start the installation. But instead of using make install, we&#8217;ll use another one to avoid it replacing the version that already comes with Ubuntu. This increases the robustness and allows you to have several versions of Python.</p>
<pre>:~$ sudo make altinstall</pre>
<p><figure id="attachment_29319" aria-describedby="caption-attachment-29319" style="width: 982px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-29319 size-full" src="https://www.osradar.com/wp-content/uploads/2020/04/3-19.png" alt="4.- Installing python 3.9 on Debian 10" width="982" height="328" srcset="https://www.osradar.com/wp-content/uploads/2020/04/3-19.png 982w, https://www.osradar.com/wp-content/uploads/2020/04/3-19-300x100.png 300w, https://www.osradar.com/wp-content/uploads/2020/04/3-19-768x257.png 768w, https://www.osradar.com/wp-content/uploads/2020/04/3-19-696x232.png 696w" sizes="(max-width: 982px) 100vw, 982px" /><figcaption id="caption-attachment-29319" class="wp-caption-text">4.- Installing python 3.9 on Debian 10</figcaption></figure></p>
<p>The installation will start at the end and you will have Python 3.9 ready for action.</p>
<p>If you want to verify, you can use the following command:</p>
<pre>:~$ python3.9 -V
Python 3.9.2</pre>
<p>So, enjoy it.</p>
<h2>Conclusion</h2>
<p>Python is very popular and many developers always want to have the latest to create their applications. That&#8217;s why it is often convenient to have the latest version of Python.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>More info <a href="https://github.com/python/cpython/blob/3.8/README.rst#build-instructions" target="_blank" rel="noopener noreferrer">here</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-python-3-9-debian/">How to install Python 3.9 on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-python-3-9-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Python 3.9 on Ubuntu 20.04 / 18.04</title>
		<link>https://www.osradar.com/install-python-3-9-ubuntu-20-04-18-04/</link>
					<comments>https://www.osradar.com/install-python-3-9-ubuntu-20-04-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 30 Oct 2020 03:26:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[python]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=24868</guid>

					<description><![CDATA[<p>Hi, folks. In this post, I will show you how to install Python 3.9 on Ubuntu 20.04 / 18.08 Python is one of the most popular programming languages out there. Its incredible versatility makes it be in almost any technology field. In addition, its learning curve is quite low which makes it ideal for learning. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-python-3-9-ubuntu-20-04-18-04/">Install Python 3.9 on Ubuntu 20.04 / 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi, folks. <strong>In this post, I will show you how to install Python 3.9 on Ubuntu 20.04 / 18.08</strong></p>



<p><a href="https://www.python.org/" target="_blank" rel="noreferrer noopener">Python</a> is one of the most popular programming languages out there. Its incredible versatility makes it be in almost any technology field. In addition, its learning curve is quite low which makes it ideal for learning.</p>



<p>In the case of Ubuntu 20.04 we have Python 3.8 but in Ubuntu 18.04 an very older version.</p>



<p>The truth is that <a href="https://www.osradar.com/tag/bionic/" target="_blank" rel="noreferrer noopener">Ubuntu 18.04</a> is in its best moment of stability, but also some of its packages are starting to get old. That’s why some people update some of them individually. Especially the most important ones for work.</p>



<h2>Install Python 3.9 on Ubuntu 20.04 / 18.04</h2>



<p>There are several methods and ways to install Python 3.9 on Ubuntu 20.04 / 18.04 however in this post, we will show you the easiest and most recommended ones too.</p>



<p>We will achieve this by adding a PPA that already has Python 3.9 ready for us. With this method you will not have to build the package by yourself, saving time, and even improving the results.</p>



<p>Therefore, this is the best possible method.</p>



<p>So, open a terminal or connect to your server via SSH</p>



<p>Then, install some necessary packages:</p>



<pre class="wp-block-preformatted">sudo apt install wget software-properties-common</pre>



<p>Then you can add the repository in question:</p>



<pre class="wp-block-preformatted">sudo add-apt-repository ppa:deadsnakes/ppa</pre>



<p>Then refresh the APT cache</p>



<pre class="wp-block-preformatted">sudo apt update</pre>



<p>And finally, install Python 3.9 in Ubuntu 20.04 / 18.04</p>



<pre class="wp-block-preformatted">sudo apt install python3.9
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
linux-headers-5.4.0-26 linux-headers-5.4.0-26-generic linux-image-5.4.0-26-generic linux-modules-5.4.0-26-generic linux-modules-extra-5.4.0-26-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpython3.9-minimal libpython3.9-stdlib python3.9-minimal
Suggested packages:
python3.9-venv python3.9-doc binutils binfmt-support
The following NEW packages will be installed:
libpython3.9-minimal libpython3.9-stdlib python3.9 python3.9-minimal
0 upgraded, 4 newly installed, 0 to remove and 55 not upgraded.
Need to get 4952 kB of archives.
After this operation, 19.8 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>Check the results, showing the version we just installed:</p>



<pre class="wp-block-preformatted">python3.9 -V</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">Python 3.9.0+</pre>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>Python is a very popular programming language and this makes it appealing to many users. Also, keeping the latest stable version installed is relatively easy so we gain stability and features.</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a> and our <a href="https://www.facebook.com/osradar" target="_blank" rel="noreferrer noopener">Facebook page</a>. Also, buy us a coffee 😉</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-python-3-9-ubuntu-20-04-18-04/">Install Python 3.9 on Ubuntu 20.04 / 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-python-3-9-ubuntu-20-04-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install FLASK in Windows 10</title>
		<link>https://www.osradar.com/how-to-install-flask-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-flask-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Fri, 02 Oct 2020 21:37:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[plask]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python programming]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=23977</guid>

					<description><![CDATA[<p>Today we will see how to install FLASK in Windows 10. This is a framework written in Python designed to create web applications. Also, it offers to do it quickly and without having to enter and edit many lines of code. It is based on the WSGI specification by Werkzeug and the Jinja2 template engine. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-flask-in-windows-10/">How to install FLASK in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we will see how to install FLASK in Windows 10. This is a framework written in Python designed to create web applications. Also, it offers to do it quickly and without having to enter and edit many lines of code. It is based on the WSGI specification by Werkzeug and the Jinja2 template engine. On the other hand, it has a BSD license. Some of its features are the following:</p>



<ul><li>It is based on Unicode</li><li>WSGI compliant</li><li>Allows the execution of individual tests</li><li>It has development servers and debugging features</li><li>Use Jinja2 template styles</li><li>Allows the creation of secure cookies for sites</li></ul>



<h2>Prerequisite</h2>



<p>As mentioned, this is an application written in Python. Consequently, it is essential to have this language installed. To know how to do it, see our <a href="https://www.osradar.com/how-to-install-python-3-in-windows-10/" target="_blank" rel="noreferrer noopener">tutorial.</a></p>



<h2>How to download and install Flask in Windows 10. Step by step.</h2>



<p>In the first place, it is necessary to create a folder where you will save the configuration of the app. With this in mind, we will create it inside <em>Documents</em> and call it <em>my_flask.</em></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask-1024x787.png" alt="" class="wp-image-23978" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then open a CMD as an administrator from the folder location and run the following command:</p>



<pre class="wp-block-preformatted">py -m venv env</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask2-1024x787.png" alt="" class="wp-image-23979" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask2-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask2-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask2.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>With this command we have created the virtual environment of Flask. In effect, all you have to do is go to the folder and look at the content.</p>



<figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask3-1024x787.png" alt="" data-id="23980" data-full-url="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask3.png" data-link="https://www.osradar.com/?attachment_id=23980" class="wp-image-23980" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask3-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask3-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask3.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask4-1024x787.png" alt="" data-id="23981" data-full-url="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask4.png" data-link="https://www.osradar.com/?attachment_id=23981" class="wp-image-23981" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask4-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask4-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask4.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></li></ul></figure>



<p>Back to the terminal, please run the following command to activate the environment:</p>



<pre class="wp-block-preformatted">env\Scripts\activate</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask5-1024x787.png" alt="" class="wp-image-23982" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask5-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask5-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask5.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, install Flask with the following command:</p>



<pre class="wp-block-preformatted">pip install flask</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask6-1024x787.png" alt="Installing Flask on Windows 10" class="wp-image-23983" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask6-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask6-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask6.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Installing Flask on Windows 10</figcaption></figure>



<p>Once Flask is downloaded and installed, the wizard recommends updating the pip. With this in mind, run the following command:</p>



<pre class="wp-block-preformatted">python.exe -m pip install --upgrade pip</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="215" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask7-1024x215.png" alt="Updating the PIP version" class="wp-image-23985" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask7-1024x215.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask7-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask7-768x161.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask7-696x146.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask7-1068x224.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask7.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Updating the PIP version</figcaption></figure>



<h2>Creating the configuration file.</h2>



<p>Now it&#8217;s time to create an <em>app.py</em> file. Consequently, some advanced text editor like <a href="https://notepad-plus-plus.org/#main" target="_blank" rel="noreferrer noopener">Notepad++</a> is recommended. Finally, save it in the newly created folder.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask8-1024x787.png" alt="Creating the app.py file" class="wp-image-23988" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask8-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask8-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask8.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Creating the app.py file</figcaption></figure>



<p>Then, please establish the application with the following order:</p>



<pre class="wp-block-preformatted">set FLASK_APP=app.py</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="78" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask9-1024x78.png" alt="" class="wp-image-23990" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask9-1024x78.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask9-300x23.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask9-768x58.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask9-696x53.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask9-1068x81.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask9.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then open the <em>app.py </em>file and add the following lines:</p>



<pre class="wp-block-preformatted">from flask import Flask
app = Flask(<strong>name</strong>)
@app.route('/')
def index():
return '&lt;h1>Hello&lt;/h1>'</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask10-1-1024x787.png" alt="Editing the configuration file" class="wp-image-23992" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask10-1.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption><em>Editing the configuration file</em></figcaption></figure>



<p>To run this environment go to the terminal and there run:</p>



<pre class="wp-block-preformatted">flask run</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="135" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask11-1024x135.png" alt="" class="wp-image-23993" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask11-1024x135.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask11-300x40.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask11-768x101.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask11-696x92.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask11-1068x141.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask11.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then, select the assigned IP address in the terminal. Then open it in any browser.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/flask12-1024x787.png" alt="Flask application running successfully in a browser" class="wp-image-23995" srcset="https://www.osradar.com/wp-content/uploads/2020/09/flask12-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/flask12-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/flask12.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Flask application running successfully in a browser</figcaption></figure>



<p>Ultimately we have seen how you install Flask on Windows 10. Besides, it is written in python so it has a great support. See you later!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-flask-in-windows-10/">How to install FLASK in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-flask-in-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Django on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/django-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/django-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 12 Aug 2020 02:17:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[python]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=22579</guid>

					<description><![CDATA[<p>Developing web applications is usually related to PHP frameworks. However, Python, which is a very versatile programming language, also has a framework that allows you to do it. And in fact, it is quite efficient. So, if you like Python and you think it is convenient to develop web applications with this language, then you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/django-ubuntu-20-04/">How to install Django on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Developing web applications is usually related to PHP frameworks. However, Python, which is a very versatile programming language, also has a framework that allows you to do it. And in fact, it is quite efficient. So, if you like Python and you think it is convenient to develop web applications with this language, then you should know Django. In this post, you will learn how to install Django on Ubuntu 20.04. Besides that, I will tell you a little about this framework.</p>



<h2>Briefly, What is Django?</h2>



<p>The <a href="https://www.djangoproject.com/">Django</a> is a framework written in python to develop web applications. It respects the design pattern Model – View -Template and focuses on making applications quickly and under the focus of DRY (Don’t repeat yourself).</p>



<p>It is incredibly popular and great websites are created with this Framework. So, let’s go for it.</p>



<h2>Install Django on Ubuntu 20.04</h2>



<h3>1) Install Python and PIP3 on Ubuntu 20.04</h3>



<p>Django is a framework created in Python. Therefore, you need to install Python but also PIP. With PIP we will do the installation.</p>



<pre class="wp-block-preformatted">:~$ sudo apt install python3 python3-pip
Reading package lists… Done
Building dependency tree
Reading state information… Done
python3 is already the newest version (3.8.2-0ubuntu2).
python3 set to manually installed.
The following additional packages will be installed:
libexpat1-dev libpython3-dev libpython3.8 libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib python-pip-whl python3-dev python3-wheel python3.8 python3.8-dev
python3.8-minimal zlib1g-dev
Suggested packages:
python3.8-venv python3.8-doc binfmt-support
The following NEW packages will be installed:
libexpat1-dev libpython3-dev libpython3.8-dev python-pip-whl python3-dev python3-pip python3-wheel python3.8-dev zlib1g-dev
The following packages will be upgraded:
libpython3.8 libpython3.8-minimal libpython3.8-stdlib python3.8 python3.8-minimal
5 upgraded, 9 newly installed, 0 to remove and 82 not upgraded.
Need to get 13.0 MB of archives.
After this operation, 25.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="275" src="https://www.osradar.com/wp-content/uploads/2020/08/1-9-1024x275.png" alt="1.- Installing Pip on Ubuntu 20.04" class="wp-image-22580" srcset="https://www.osradar.com/wp-content/uploads/2020/08/1-9-1024x275.png 1024w, https://www.osradar.com/wp-content/uploads/2020/08/1-9-300x81.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/1-9-768x207.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/1-9-696x187.png 696w, https://www.osradar.com/wp-content/uploads/2020/08/1-9-1068x287.png 1068w, https://www.osradar.com/wp-content/uploads/2020/08/1-9.png 1353w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Installing Pip on Ubuntu 20.04</figcaption></figure>



<p>Then you can check the version of PIP that has been installed.</p>



<pre class="wp-block-preformatted">:~$ pip3 -V
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)</pre>



<p>Now we can install Django.</p>



<h3>2.- Install Django on Ubuntu 20.04</h3>



<p>The next step is to install Django. We will use PIP as a tool that will allow us to do the download.</p>



<pre class="wp-block-preformatted">:~$ sudo -H pip3 install Django
Collecting Django
Downloading Django-3.1-py3-none-any.whl (7.8 MB)
|████████████████████████████████| 7.8 MB 30 kB/s
Collecting sqlparse>=0.2.2
Downloading sqlparse-0.3.1-py2.py3-none-any.whl (40 kB)
|████████████████████████████████| 40 kB 10 kB/s
Collecting asgiref~=3.2.10
Downloading asgiref-3.2.10-py3-none-any.whl (19 kB)
Collecting pytz
Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
|████████████████████████████████| 510 kB 8.2 kB/s
Installing collected packages: sqlparse, asgiref, pytz, Django
Successfully installed Django-3.1 asgiref-3.2.10 pytz-2020.1 sqlparse-0.3.1</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="792" height="278" src="https://www.osradar.com/wp-content/uploads/2020/08/2-5.png" alt="2.- Install Django on Ubuntu 20.04" class="wp-image-22581" srcset="https://www.osradar.com/wp-content/uploads/2020/08/2-5.png 792w, https://www.osradar.com/wp-content/uploads/2020/08/2-5-300x105.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/2-5-768x270.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/2-5-696x244.png 696w" sizes="(max-width: 792px) 100vw, 792px" /><figcaption>2.- Install Django on Ubuntu 20.04</figcaption></figure>



<p>There the download and installation process will begin.</p>



<p>You can check the installed version with the following command:</p>



<pre class="wp-block-preformatted">:~$ django-admin --version
3.1</pre>



<h3>3.- Configuring Django for the first use</h3>



<p>Django is installed but before you can start making applications, you have to make a project. To do so, run this command:</p>



<pre class="wp-block-preformatted">:~$ sudo django-admin startproject example</pre>



<p>Replace example with the name of your project.</p>



<p>Then, you have to make the first migration. This will load the default settings which is what we need to start using Django.</p>



<p>So, access the generated folder and start the migration:</p>



<pre class="wp-block-preformatted">:~$ sudo python3 manage.py migrate
perations to perform:
Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
Applying contenttypes.0001_initial… OK
Applying auth.0001_initial… OK
Applying admin.0001_initial… OK
Applying admin.0002_logentry_remove_auto_add… OK
Applying admin.0003_logentry_add_action_flag_choices… OK
Applying contenttypes.0002_remove_content_type_name… OK
Applying auth.0002_alter_permission_name_max_length… OK
Applying auth.0003_alter_user_email_max_length… OK
Applying auth.0004_alter_user_username_opts… OK
Applying auth.0005_alter_user_last_login_null… OK
Applying auth.0006_require_contenttypes_0002… OK
Applying auth.0007_alter_validators_add_error_messages… OK
Applying auth.0008_alter_user_username_max_length… OK
Applying auth.0009_alter_user_last_name_max_length… OK
Applying auth.0010_alter_group_name_max_length… OK
Applying auth.0011_update_proxy_permissions… OK
Applying auth.0012_alter_user_first_name_max_length… OK
Applying sessions.0001_initial… OK</pre>



<p>Django is very versatile and therefore allows us to create an administrator account that will be able to make configurations from the framework&#8217;s web interface. So, create it with the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo python3 manage.py createsuperuser
Username (leave blank to use 'root'): admin
Email address: angelo@osradar.com
Password:
Password (again):
The password is too similar to the email address.
This password is too short. It must contain at least 8 characters.
This password is too common.
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="768" height="241" src="https://www.osradar.com/wp-content/uploads/2020/08/3-4.png" alt="3.- Creating the Django super user" class="wp-image-22582" srcset="https://www.osradar.com/wp-content/uploads/2020/08/3-4.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/3-4-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/3-4-696x218.png 696w" sizes="(max-width: 768px) 100vw, 768px" /><figcaption>3.- Creating the Django super user</figcaption></figure>



<p>There you will have to choose a username and password as well as an email. This one also tells you that you have to choose a strong password.</p>



<p>Now, it is necessary to make the project accessible. To do this, you must change a parameter in the project configuration file:</p>



<pre class="wp-block-preformatted">:~$ sudo nano example/settings.py</pre>



<p>And modify the following parameter:</p>



<pre class="wp-block-preformatted">ALLOWED_HOSTS = ['COMPUTER_IP_WHICH_IS_RUNNING_DJANGO']</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="658" height="205" src="https://www.osradar.com/wp-content/uploads/2020/08/4-4.png" alt="4.- Configuring Django on Ubuntu 20.04" class="wp-image-22583" srcset="https://www.osradar.com/wp-content/uploads/2020/08/4-4.png 658w, https://www.osradar.com/wp-content/uploads/2020/08/4-4-300x93.png 300w" sizes="(max-width: 658px) 100vw, 658px" /><figcaption>4.- Configuring Django on Ubuntu 20.04</figcaption></figure>



<p>Save the changes and close the file.</p>



<p>Now serve the project in developer mode:</p>



<pre class="wp-block-preformatted">:~$ sudo python3 manage.py runserver 0.0.0:8000
Watching for file changes with StatReloader
Performing system checks…
System check identified no issues (0 silenced).
August 10, 2020 - 17:03:26
Django version 3.1, using settings 'example.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="676" height="202" src="https://www.osradar.com/wp-content/uploads/2020/08/5-2.png" alt="5.- Running Django on Ubuntu 20.04" class="wp-image-22585" srcset="https://www.osradar.com/wp-content/uploads/2020/08/5-2.png 676w, https://www.osradar.com/wp-content/uploads/2020/08/5-2-300x90.png 300w" sizes="(max-width: 676px) 100vw, 676px" /><figcaption>5.- Running Django on Ubuntu 20.04</figcaption></figure>



<p>And now open your web browser and go to the computer where Django is installed. For example <code>http://192.168.1.43:8000</code></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="501" src="https://www.osradar.com/wp-content/uploads/2020/08/6-2-1024x501.png" alt="6.- Django on Ubuntu 20.04" class="wp-image-22584" srcset="https://www.osradar.com/wp-content/uploads/2020/08/6-2-1024x501.png 1024w, https://www.osradar.com/wp-content/uploads/2020/08/6-2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/6-2-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/6-2-696x340.png 696w, https://www.osradar.com/wp-content/uploads/2020/08/6-2-1068x522.png 1068w, https://www.osradar.com/wp-content/uploads/2020/08/6-2.png 1360w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Django on Ubuntu 20.04</figcaption></figure>



<p>With this, Django is correctly installed and ready for work.</p>



<p>You can also check the administration panel <code>http://your-pc:8000/admin</code> and you will see the login screen</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="501" src="https://www.osradar.com/wp-content/uploads/2020/08/7-2-1024x501.png" alt="7.- Django login screen" class="wp-image-22586" srcset="https://www.osradar.com/wp-content/uploads/2020/08/7-2-1024x501.png 1024w, https://www.osradar.com/wp-content/uploads/2020/08/7-2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/7-2-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/7-2-696x340.png 696w, https://www.osradar.com/wp-content/uploads/2020/08/7-2-1068x522.png 1068w, https://www.osradar.com/wp-content/uploads/2020/08/7-2.png 1360w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>7.- Django login screen</figcaption></figure>



<p>Enter the credentials of the administrator user you have created and you will access the configuration panel:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="501" src="https://www.osradar.com/wp-content/uploads/2020/08/8-2-1024x501.png" alt="8.- Django administration " class="wp-image-22587" srcset="https://www.osradar.com/wp-content/uploads/2020/08/8-2-1024x501.png 1024w, https://www.osradar.com/wp-content/uploads/2020/08/8-2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/8-2-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/8-2-696x340.png 696w, https://www.osradar.com/wp-content/uploads/2020/08/8-2-1068x522.png 1068w, https://www.osradar.com/wp-content/uploads/2020/08/8-2.png 1360w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>8.- Django administration </figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>Django is one of the most amazing web frameworks out there. It has all the potential of Python and this makes it easy to learn and accessible for many. And as you can see, it&#8217;s not hard to install it on Ubuntu 20.04.</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" aria-label="undefined (opens in a new tab)" rel="noreferrer noopener">our telegra</a>m channel.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/django-ubuntu-20-04/">How to install Django on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/django-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Tensorflow on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/install-tensorflow-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/install-tensorflow-on-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 22 Jan 2020 23:55:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tensorflow]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17009</guid>

					<description><![CDATA[<p>Hi, folks. This time you will learn how to install Tensorflow on Ubuntu 18.04. According to the project website, &#8220;Tensorflow is an end-to-end open source platform for machine learning. It has a comprehensive, flexible ecosystem of tools, libraries and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-tensorflow-on-ubuntu-18-04/">How to install Tensorflow on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Hi, folks. This time you will learn how to install Tensorflow on Ubuntu 18.04.</strong></p>
<p>According to the <a href="https://www.tensorflow.org/" target="_blank" rel="noopener noreferrer">project website</a>, &#8220;<strong>Tensorflow is an end-to-end open source platform for machine learning</strong>. It has a comprehensive, flexible ecosystem of tools, libraries and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy ML powered applications&#8221;.</p>
<p>Therefore, with Tensorflow you can build neural networks to decipher patterns used by humans. It is also important to say that,<strong> it is open-source and is currently used by Google, which shows us the power of it.</strong></p>
<p>Tensorflow is very efficient in managing computer resources because it allows you to deploy computing to one or more CPUs or GPUs on desktops, servers, or mobile devices with a single API.</p>
<p>So, if you&#8217;re going to work with it, or are curious about this technology, it&#8217;s a good idea to know how to install it.</p>
<h2>Install Tensorflow on Ubuntu 18.04</h2>
<h3>Preparing the environment</h3>
<p>Tensorflow is built on <a href="https://www.osradar.com/tag/python" target="_blank" rel="noopener noreferrer">Python</a> and requires at least version 3.4. So first we&#8217;ll make sure it&#8217;s installed and what version the system has.</p>
<pre>:~$ python3 -V<br>python 3.6.9</pre>
<p>Therefore, we have a compatible version so the installation will happen without problems.</p>
<p>Then we will install some packages needed to perform the installation of Tensorflow. One of them is Pip that will serve us as a package manager to install it.</p>
<pre>:~$ sudo apt install python3-venv python3-pip</pre>
<figure id="attachment_17617" aria-describedby="caption-attachment-17617" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17617" src="https://www.osradar.com/wp-content/uploads/2020/01/1-12.png" alt="1.- Installing the python packages" width="1365" height="463" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-12.png 1365w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-300x102.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-1024x347.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-768x261.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-696x236.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-1068x362.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-12-1238x420.png 1238w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-17617" class="wp-caption-text">1.- Installing the python packages</figcaption></figure>
<p>Once these packages are installed, we need to create a virtual Python environment and in it install Tensorflow. This is the safest way to do the installation.</p>
<p>First, create a folder for it:</p>
<pre>~$ mkdir tensorflow</pre>
<p>Then access the folder:</p>
<pre>:~$ cd tensorflow</pre>
<p>Now we will create the virtual environment inside this folder with the following command:</p>
<pre>:~$ python3 -m venv venv</pre>
<p>And finally, we activate it with the following command:</p>
<pre>:~$ source venv/bin/activate</pre>
<figure id="attachment_17619" aria-describedby="caption-attachment-17619" style="width: 790px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-17619" src="https://www.osradar.com/wp-content/uploads/2020/01/2-11.png" alt="2.- Enabling the python virtual environment" width="790" height="131" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-11.png 790w, https://www.osradar.com/wp-content/uploads/2020/01/2-11-300x50.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-11-768x127.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-11-696x115.png 696w" sizes="(max-width: 790px) 100vw, 790px" /><figcaption id="caption-attachment-17619" class="wp-caption-text">2.- Enabling the python virtual environment</figcaption></figure>
<p>Now we can install Tensorflow on Ubuntu 18.04.</p>
<h3>Getting Tensorflow on Ubuntu 18.04</h3>
<p>Once inside the virtual environment, we proceed to install Tensorflow as follows using Pip.</p>
<pre>:~$ pip install tensorflow</pre>
<p>This will install the current version of the package.</p>
<p>To verify that everything went well, use the following command:</p>
<pre>:~$ python -c 'import tensorflow as tf; print(tf.__version__)'</pre>
<p>If you want to update tensorflow, remember that the command is as follows:</p>
<pre>:~$ pip install --upgrade tensorflow</pre>
<p>After you have finished working, you can disable the virtual environment.</p>
<pre>:~$ deactivate</pre>
<p>And that is it. Tensorflow is installed and ready to the job.</p>
<h3>Some issues</h3>
<p>It is possible that some mistakes may occur. For example, displaying the version of Tensorflow might give the following error:</p>
<pre>Illegal instruction (core dumped)</pre>
<p>A solution could be to install Tensorflow version 1.5 with the following command:</p>
<pre>:~$ pip install tensorflow==1.5</pre>
<p>Another option is that the CPU or GPU does not have enough capacity to handle the package.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-tensorflow-on-ubuntu-18-04/">How to install Tensorflow on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-tensorflow-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
