<?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>plask Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/plask/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 03 Oct 2020 16:09:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<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>
	</channel>
</rss>
