Skip to main content

New

76th Independence Day of India,15 agust

Python 3 Installation on Windows

Python 3 Installation on Windows

 https://www.python.org/

The version you need depends on what you want to do in Python. For example, if you are working on a project coded in Python version 2.6, you probably need that version. If you are starting a project from scratch, you have the freedom to choose.

 The installation procedure involves downloading the official Python .exe installer and running it on your system.

If you are learning to code in Python, we recommend you download both the latest version of Python 2 and 3. Working with Python 2 enables you to work on older projects or test new projects for backward compatibility

 

Step 2: Download Python Executable Installer

  1. Open your web browser and navigate to the Downloads for Windows section of the official Python website.
  2. Search for your desired version of Python. At the time of publishing this article, the latest Python 3 release is version 3.7.3, while the latest Python 2 release is version 2.7.16.
  3. Select a link to download either the Windows x86-64 executable installer or Windows x86 executable installer. The download is approximately 25MB.

 

 

 


Step 3: Run Executable Installer

1. Run the Python Installer once downloaded. (In this example, we have downloaded Python 3.7.3.)

2. Make sure you select the Install launcher for all users and Add Python 3.7 to PATH checkboxes. The latter places the interpreter in the execution path. For older versions of Python that do not support the Add Python to Path checkbox, see Step 6.

3. Select Install Now – the recommended installation options.


For all recent versions of Python, the recommended installation options include Pip and IDLE. Older versions might not include such additional features.

4. The next dialog will prompt you to select whether to Disable path length limit. Choosing this option will allow Python to bypass the 260-character MAX_PATH limit. Effectively, it will enable Python to use long path names.


 

Step 4: Verify Python Was Installed On Windows

  1. Navigate to the directory in which Python was installed on the system. In our case, it is C:\Users\Username\AppData\Local\Programs\Python\Python37 since we have installed the latest version.
  2. Double-click python.exe.
  3. The output should be similar to what you can see below:

Step 5: Verify Pip Was Installed

If you opted to install an older version of Python, it is possible that it did not come with Pip preinstalled. Pip is a powerful package management system for Python software packages. Thus, make sure that you have it installed.

We recommend using Pip for most Python packages, especially when working in virtual environments.

To verify whether Pip was installed:

  1. Open the Start menu and type “cmd.
  2. Select the Command Prompt application.
  3. Enter pip -V in the console. If Pip was installed successfully, you should see the following o

 

Step 6: Add Python Path to Environment Variables (Optional)

We recommend you go through this step if your version of the Python installer does not include the Add Python to PATH checkbox or if you have not selected that option.

Setting up the Python path to system variables alleviates the need for using full paths. It instructs Windows to look through all the PATH folders for “python” and find the install folder that contains the python.exe file.

1. Open the Start menu and start the Run app.


 

2. Type sysdm.cpl and click OK. This opens the System Properties window.

3. Navigate to the Advanced tab and select Environment Variables.

4. Under System Variables, find and select the Path variable.

5. Click Edit.

6. Select the Variable value field. Add the path to the python.exe file preceded with a semicolon (;). For example, in the image below, we have added “;C:\Python34.


7. Click OK and close all windows.

By setting this up, you can execute Python scripts like this: Python script.py

Instead of this: C:/Python34/Python script.py

As you can see, it is cleaner and more manageable.

 

tep 7: Install virtualnv (Optional)

You have Python, and you have Pip to manage packages. Now, you need one last software package – virtualnv. Virtualnv enables you to create isolated local virtual environments for your Python projects.

Why use virtualnv?

Python software packages are installed system-wide by default. Consequently, whenever a single project-specific package is changed, it changes for all your Python projects. You would want to avoid this, and having separate virtual environments for each project is the easiest solution.

To install virtualnv:

1. Open the Start menu and type “cmd.”

2. Select the Command Prompt application.

3. Type the following pip command in the console:

C:\Users\Username> pip install virtualenv

Upon completion, virtualnv is installed on your system.

 

 

 

 

Comments

Popular posts from this blog

INTERNATIONAL YOGA DAY - June 21, 2022

  *આંતરરા ષ્ટ્રીય યોગ દિવસ  INTERNATIONAL YOGA DAY - June 21, 2022  આંતરરાષ્ટ્રીય યોગ દિવસ 2022: થીમ, ઇતિહાસ, મહત્વ અને ઉજવણીઓ તપાસો આંતરરાષ્ટ્રીય યોગ દિવસ 2022: 8મો આંતરરાષ્ટ્રીય યોગ દિવસ 21 જૂને ઉજવવામાં આવે છે. ચાલો આપણે દિવસની ઉજવણી, થીમ, ઈતિહાસ અને ઉદ્દેશ્યો પર વિગતવાર નજર કરીએ. *આંતરરાષ્ટ્રીય યોગ દિવસ  આંતરરાષ્ટ્રીય યોગ દિવસ 2022: યોગના ફાયદાઓ વિશે જાગૃતિ ફેલાવવા માટે 21 જૂનના રોજ ઉજવવામાં આવે છે. આ વર્ષે તે આંતરરાષ્ટ્રીય યોગ દિવસની 8મી આવૃત્તિ છે. આંતરરાષ્ટ્રીય યોગ દિવસ 2022 પ્રદર્શનનો મુખ્ય કાર્યક્રમ મૈસુર, કર્ણાટક ખાતે યોજાશે. તેનું નેતૃત્વ વડાપ્રધાન નરેન્દ્ર મોદી કરશે. *આંતરરાષ્ટ્રીય યોગ દિવસ 2022   યોગના શારીરિક અને માનસિક સ્વાસ્થ્ય બંને માટે ઘણા ફાયદા છે. તે એક અમૂલ્ય પ્રાચીન ભારતીય પ્રથા છે. રોગચાળાના સમયમાં જ્યારે લોકો તણાવમાં હોય, લોકોની અવરજવર પર નિયંત્રણો હોય, વગેરે યોગ શારીરિક અને માનસિક સ્વસ્થતા જાળવવામાં મદદ કરશે. તે યોગ્ય રીતે કહેવાય છે કે યોગ માત્ર શારીરિક અને માનસિક આરામ જ નહીં પરંતુ શક્તિ અને સ્થિતિસ્થાપકતાનો પણ વિકાસ કરે છે. વિશ્વ યોગ દિવસ 21 જૂને સમગ્ર વિશ્વમા

Guru Purnima 2022 ગુરુ પૂર્ણિમા 13 જુલાઈ, 9 શુભ યોગોનો મહાસંયોગ,

Guru Purnima 2022 ગુરુ પૂર્ણિમા 13 જુલાઈ, 9 શુભ યોગોનો મહાસંયોગ,  ગુરુ પૂર્ણિમા 2022: ગુરુ પૂર્ણિમા શા માટે ઉજવવામાં આવે છે? આ વર્ષની ગુરુ પૂર્ણિમા શા માટે છે ખાસ, જાણો તેનું મહત્વ અને મહિમા ગુરુ પૂર્ણિમા શા માટે ઉજવવામાં આવે છે: ગુરુ બ્રહ્મા ગુરુ વિષ્ણુ, ગુરુ દેવો મહેશ્વર ગુરુ સાક્ષાત પરબ્રહ્મ, તસ્મૈ શ્રી ગુરુવે નમઃ એટલે કે ગુરુ બ્રહ્મા, ગુરુ વિષ્ણુ અને ગુરુ મહેશ. ગુરુ જ સાચા પરબ્રહ્મ છે, એવા ગુરુને હું નમન કરું છું. કોઈપણ મનુષ્યની માતા પ્રથમ શિક્ષક છે, પશુ-પક્ષીઓમાં પણ, જે આપણને સાંસારિક મૂલ્યો આપે છે. પરંતુ માતાની કેળવણી-દીક્ષા પછી ગુરુ જ કરે છે, જે જીવન માટે ખૂબ જ જરૂરી છે, જીવનના મહાસાગરને ઓળંગે તેવું શિક્ષણ ગુરુ જ આપી શકે છે, ગુરુના જ્ઞાનથી પણ ભગવાનના દર્શન શક્ય છે. . કદાચ ત્યારે જ માનવીએ ધીરે ધીરે પ્રગતિ કરી કારણ કે માતા સિવાય તેની પાસે એક શિક્ષક પણ હતો, જે અન્ય જીવો પાસે ન હતો. હિન્દુ ધર્મમાં ભગવાન કરતાં ગુરુનો મહિમા વધુ વર્ણવવામાં આવ્યો છે. અને આ દિવસ ગુરુની યાદમાં પણ ઉજવવામાં આવે છે, જેને આપણે ગુરુ પૂર્ણિમા કહીએ છીએ. ગુરુ પૂર્ણિમા અષાઢ અથવા જૂન-જુલાઈ મહિનામાં પૂર્ણિમાના દિવસે

International Picnic Day (June 18th)

  International Picnic Day (June 18th) ઘણીવાર એવો દાવો કરવામાં આવે છે કે જીવન કોઈ પિકનિક નથી - પરંતુ આજે તે છે! ઇન્ટરનેશનલ પિકનિક ડે એ મિત્રો અથવા પરિવાર સાથે ખુલ્લી હવામાં ખાવાની તક છે. જૂનના મધ્યમાં અનુકૂળ રીતે મૂકવામાં આવે છે, ઘણા લોકો માટે આનો અર્થ એ છે કે હવામાન સારું હોવું જોઈએ અને સૂર્ય ચમકતો હોવો જોઈએ (ઓછામાં ઓછા ઉત્તર ગોળાર્ધમાં). પરંતુ જો હવામાન સહકાર આપવા માંગતા ન હોય તો પણ, અંદરની પિકનિક એક શ્રેષ્ઠ વિકલ્પ બની શકે છે. ફક્ત ફ્લોર પર ધાબળો ફેલાવો અને સાદા ભોજનનો આનંદ માણો! *તો તે પિકનિક બાસ્કેટ તૈયાર કરો અને આંતરરાષ્ટ્રીય પિકનિક દિવસની ઉજવણી શરૂ કરો. *આંતરરાષ્ટ્રીય પિકનિક દિવસનો ઇતિહાસ "પિકનિક" શબ્દ કદાચ ફ્રેન્ચ ભાષામાંથી આવ્યો છે, ખાસ કરીને "પિક-નિક" શબ્દ પરથી. એવું માનવામાં આવે છે કે આ પ્રકારનું અનૌપચારિક આઉટડોર ભોજન 1800 ના દાયકાના મધ્યમાં ફ્રેન્ચ ક્રાંતિ પછી ફ્રાન્સમાં લોકપ્રિય મનોરંજન બની ગયું હતું જ્યારે દેશના શાહી ઉદ્યાનોમાં ફરી જવાનું શક્ય બન્યું હતું. જો કે, જો તે ફ્રાન્સમાં શરૂ થયું હોય, તો પણ તે એક સુંદર પ્રવૃત્તિ બની ગઈ છે જે સમગ્ર વિશ્વમાં ફેલા