SlideShare a Scribd company logo
1 of 36
Installing Python on
Windows OS
David Hsu
https://www.python.org/
Download the Python's installer for specific version
based on the operating system
e.g. For 64-bit Windows OS, download python-3.5.2-amd64.exe from
Windows x86-64 executable installer
Windows x86-64 executable installer
Make sure to check the option "Add Python 3.5 to PATH", or
there will be some inconveniences when using pip installation
in the command prompt.
WHEEL (.whl)
Download installation files (.whl) from
http://www.lfd.uci.edu/~gohlke/pythonlibs/
Many thanks to the team from UC-Irvine.
They make installations much easier for windows' users.
List of the installing libraries
Requests, the only Non-GMO HTTP library for Python.
Theano, a Python library that allows you to define, optimize, and evaluate mathematical
expressions involving multi-dimensional arrays efficiently.
Download the .whl files and save them under the same
folder, such as C:Usersuser_nameDownloads
2. In the command prompt : change directory to the
folder that those .whl files have been saved to
1. Search "cmd" and open the command prompt
In the command prompt :
cd to_the_path
PIP
In the command prompt : pip install package_name.whl
In the command prompt :
pip install numpy-1.11.3+mkl-cp35-cp35m-win_amd64.whl
In the command prompt :
pip install scipy-0.18.1-cp35-cp35m-win_amd64.whl
In the command prompt :
pip install matplotlib-1.5.3-cp35-cp35m-win_amd64.whl
In the command prompt :
pip install scikit_learn-0.18.1-cp35-cp35m-win_amd64.whl
In the command prompt :
pip install tensorflow-0.12.1--cp35-cp35m-win_amd64.whl
In the command prompt :
pip install Theano-0.8.2-py2.py3-none-any.whl
In the command prompt :
pip install pygame-1.9.2-cp35-cp35m-win_amd64.whl
In the command prompt :
pip install requests-2.12.4-py2.py3-none-any.whl
* You need to have numpy installed first before you install opencv (cv2)
In the command prompt :
pip install opencv_python-3.2.0-cp35-cp35m-win_amd64.whl
To verify the modules have been installed successfully, try to
import each module and check its version like followings.
Congrats, you can start up your python code now!
Appendix
If the option "Add Python 3.5 to PATH" was not
checked while installing ...
then, in the command prompt, we can not execute
python nor use 'pip' for installations since they can
not be recognized by the system
[solution 1] Adding those paths to the system
environmental variable "PATH" temporarily
To show the current PATH value in the command prompt :
echo %PATH%
To append a new path to the PATH value in the command prompt :
set PATH=%PATH%;the_new_path
Then use echo %PATH% to print out the PATH value again to confirm
the new path has been added successfully by using set
PATH=%PATH%;the_new_path
To execute Python in the command prompt, the following path needs to
be added to system environment variables of PATH :
C:Usersuser_nameAppDataLocalProgramsPythonPython35
To use 'pip' to install python's libraries in the command prompt, the following
path needs to be added to system environment variables of PATH :
C:Usersuser_nameAppDataLocalProgramsPythonPython35Scripts
[solution 2] Adding those paths to the system
environmental variable "PATH" permanently
select System from Control Panel and click Advanced system settings
In System Properties, click the button "Environment Variables..."
Select Path and click the button "Edit", or just double click Path
In Edit User Variable, append the new paths in Variable value and use
semicolon ";" to separate each path, then keep clicking "OK" button to
complete the setting.
e.g. ;C:Usersuser_nameAppDataLocalProgramsPythonPython35;C:
Usersuser_nameAppDataLocalProgramsPythonPython35Scripts
In the command prompt, use echo %PATH% to check system
environment variables of PATH has been updated with those two
paths we need for python. And the commands of Python and pip
can be applied successfully.
Or reopen the Environment Variables window and double-click Path
to check those two paths for Python has been included
Remarks
1. The version of operating system (32-bit or 64-bit) on the device
can be found from
2. For windows XP, it is suggested to install Python 3.4.4 since
Python>=3.5 doesn't support windows XP.
3. For windows XP, download the .whl files with cp34 and win32 version
for libraries installations.
e.g. numpy-1.11.3+mkl-cp34-cp34m-win32.whl
4. If error occurs while installing, upgrade 'pip' first by using "pip install
--upgrade pip", and then try again "pip install package_name.whl".
5. For windows XP, the Python34 was installed under C: by default,
therefore, the following two paths need to be included to system
environment variables of PATH to use Python and pip in the command
prompt :
C:Python34;C:Python34Scripts
For Windows XP
-> List of installations
-> In the command prompt
-> Check installations
in Python 3.4.4 Shell
-> List of installations
-> In the command prompt
 6. Python 3.6.0 is now distributed and the supported libraries are
also available from the website http://www.lfd.uci.edu/~gohlke/
pythonlibs/
-> Check installations in Python 3.6.0 Shell

More Related Content

What's hot

Monit - Introduction, Configuration & Usage
Monit - Introduction, Configuration & UsageMonit - Introduction, Configuration & Usage
Monit - Introduction, Configuration & Usage
Amit Solanki
 

What's hot (10)

Install maven 3.docx
Install maven 3.docxInstall maven 3.docx
Install maven 3.docx
 
Pandora FMS: Sun One webserver
Pandora FMS: Sun One webserverPandora FMS: Sun One webserver
Pandora FMS: Sun One webserver
 
Demystifying how imports work in Python
Demystifying how imports work in PythonDemystifying how imports work in Python
Demystifying how imports work in Python
 
Operating System Practice : Meeting 2-basic commands linux operating system-s...
Operating System Practice : Meeting 2-basic commands linux operating system-s...Operating System Practice : Meeting 2-basic commands linux operating system-s...
Operating System Practice : Meeting 2-basic commands linux operating system-s...
 
Monit - Introduction, Configuration & Usage
Monit - Introduction, Configuration & UsageMonit - Introduction, Configuration & Usage
Monit - Introduction, Configuration & Usage
 
Read me
Read meRead me
Read me
 
Installation Of Lamp
Installation Of LampInstallation Of Lamp
Installation Of Lamp
 
Python1
Python1Python1
Python1
 
Analysis of commits and pull requests in Travis CI, Buddy and AppVeyor using ...
Analysis of commits and pull requests in Travis CI, Buddy and AppVeyor using ...Analysis of commits and pull requests in Travis CI, Buddy and AppVeyor using ...
Analysis of commits and pull requests in Travis CI, Buddy and AppVeyor using ...
 
Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2
Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2
Curiosity Bits Tutorial: Mining Twitter User Profile on Python V2
 

Similar to Installing Python on Windows OS

Please complete and post the screenshots here- I can be reached at pra.pdf
Please complete and post the screenshots here- I can be reached at pra.pdfPlease complete and post the screenshots here- I can be reached at pra.pdf
Please complete and post the screenshots here- I can be reached at pra.pdf
Ian5L3Allanm
 
Open erp on ubuntu
Open erp on ubuntuOpen erp on ubuntu
Open erp on ubuntu
Iker Coranti
 

Similar to Installing Python on Windows OS (20)

Installing Python on Mac
Installing Python on MacInstalling Python on Mac
Installing Python on Mac
 
Getting started with PHPUnit
Getting started with PHPUnitGetting started with PHPUnit
Getting started with PHPUnit
 
vvvvReadme
vvvvReadmevvvvReadme
vvvvReadme
 
How to Install Python on Linux
How to Install Python on LinuxHow to Install Python on Linux
How to Install Python on Linux
 
Dynamical systems simulation in Python for science and engineering
Dynamical systems simulation in Python for science and engineeringDynamical systems simulation in Python for science and engineering
Dynamical systems simulation in Python for science and engineering
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
 
Practical%2006%20Big%20data%20analytics.pptx
Practical%2006%20Big%20data%20analytics.pptxPractical%2006%20Big%20data%20analytics.pptx
Practical%2006%20Big%20data%20analytics.pptx
 
L2 - Install Python.pptx
L2 - Install Python.pptxL2 - Install Python.pptx
L2 - Install Python.pptx
 
Please complete and post the screenshots here- I can be reached at pra.pdf
Please complete and post the screenshots here- I can be reached at pra.pdfPlease complete and post the screenshots here- I can be reached at pra.pdf
Please complete and post the screenshots here- I can be reached at pra.pdf
 
Python Lecture 0
Python Lecture 0Python Lecture 0
Python Lecture 0
 
exp-7-pig installation.pptx
exp-7-pig installation.pptxexp-7-pig installation.pptx
exp-7-pig installation.pptx
 
Python Programming-Lesson 1- Installation and Environmental Set-up.pptx
Python Programming-Lesson 1- Installation and Environmental Set-up.pptxPython Programming-Lesson 1- Installation and Environmental Set-up.pptx
Python Programming-Lesson 1- Installation and Environmental Set-up.pptx
 
Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...
Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...
Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...
 
LIGGGHTS installation-guide
LIGGGHTS installation-guideLIGGGHTS installation-guide
LIGGGHTS installation-guide
 
Python arch wiki
Python   arch wikiPython   arch wiki
Python arch wiki
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
 
Python tutorial
Python tutorialPython tutorial
Python tutorial
 
HowTo Install openMPI on Ubuntu
HowTo Install openMPI on UbuntuHowTo Install openMPI on Ubuntu
HowTo Install openMPI on Ubuntu
 
How to Install Python on Windows
How to Install Python on WindowsHow to Install Python on Windows
How to Install Python on Windows
 
Open erp on ubuntu
Open erp on ubuntuOpen erp on ubuntu
Open erp on ubuntu
 

More from Wei-Wen Hsu (9)

openCV with python
openCV with pythonopenCV with python
openCV with python
 
Python for data science
Python for data sciencePython for data science
Python for data science
 
Running openCV project on Mac OS
Running openCV project on Mac OSRunning openCV project on Mac OS
Running openCV project on Mac OS
 
Using openCV 3.2.0 with CodeBlocks
Using openCV 3.2.0 with CodeBlocksUsing openCV 3.2.0 with CodeBlocks
Using openCV 3.2.0 with CodeBlocks
 
Using openCV 3.1.0 with vs2015
Using openCV 3.1.0 with vs2015Using openCV 3.1.0 with vs2015
Using openCV 3.1.0 with vs2015
 
Using open cv 249 with vs2012
Using open cv 249 with vs2012Using open cv 249 with vs2012
Using open cv 249 with vs2012
 
Using openCV 2.0 with Dev C++
Using openCV 2.0 with Dev C++Using openCV 2.0 with Dev C++
Using openCV 2.0 with Dev C++
 
Basic openCV Functions Using CPP
Basic openCV Functions Using CPPBasic openCV Functions Using CPP
Basic openCV Functions Using CPP
 
Concise Notes on Python
Concise Notes on PythonConcise Notes on Python
Concise Notes on Python
 

Recently uploaded

Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 

Recently uploaded (20)

Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 

Installing Python on Windows OS

  • 3. Download the Python's installer for specific version based on the operating system e.g. For 64-bit Windows OS, download python-3.5.2-amd64.exe from Windows x86-64 executable installer
  • 4. Windows x86-64 executable installer Make sure to check the option "Add Python 3.5 to PATH", or there will be some inconveniences when using pip installation in the command prompt.
  • 6. Download installation files (.whl) from http://www.lfd.uci.edu/~gohlke/pythonlibs/ Many thanks to the team from UC-Irvine. They make installations much easier for windows' users.
  • 7. List of the installing libraries Requests, the only Non-GMO HTTP library for Python. Theano, a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently.
  • 8. Download the .whl files and save them under the same folder, such as C:Usersuser_nameDownloads
  • 9. 2. In the command prompt : change directory to the folder that those .whl files have been saved to 1. Search "cmd" and open the command prompt In the command prompt : cd to_the_path
  • 10. PIP In the command prompt : pip install package_name.whl
  • 11. In the command prompt : pip install numpy-1.11.3+mkl-cp35-cp35m-win_amd64.whl
  • 12. In the command prompt : pip install scipy-0.18.1-cp35-cp35m-win_amd64.whl
  • 13. In the command prompt : pip install matplotlib-1.5.3-cp35-cp35m-win_amd64.whl
  • 14. In the command prompt : pip install scikit_learn-0.18.1-cp35-cp35m-win_amd64.whl
  • 15. In the command prompt : pip install tensorflow-0.12.1--cp35-cp35m-win_amd64.whl
  • 16. In the command prompt : pip install Theano-0.8.2-py2.py3-none-any.whl
  • 17. In the command prompt : pip install pygame-1.9.2-cp35-cp35m-win_amd64.whl
  • 18. In the command prompt : pip install requests-2.12.4-py2.py3-none-any.whl
  • 19. * You need to have numpy installed first before you install opencv (cv2) In the command prompt : pip install opencv_python-3.2.0-cp35-cp35m-win_amd64.whl
  • 20. To verify the modules have been installed successfully, try to import each module and check its version like followings.
  • 21. Congrats, you can start up your python code now!
  • 22. Appendix If the option "Add Python 3.5 to PATH" was not checked while installing ...
  • 23. then, in the command prompt, we can not execute python nor use 'pip' for installations since they can not be recognized by the system
  • 24. [solution 1] Adding those paths to the system environmental variable "PATH" temporarily To show the current PATH value in the command prompt : echo %PATH% To append a new path to the PATH value in the command prompt : set PATH=%PATH%;the_new_path Then use echo %PATH% to print out the PATH value again to confirm the new path has been added successfully by using set PATH=%PATH%;the_new_path
  • 25. To execute Python in the command prompt, the following path needs to be added to system environment variables of PATH : C:Usersuser_nameAppDataLocalProgramsPythonPython35
  • 26. To use 'pip' to install python's libraries in the command prompt, the following path needs to be added to system environment variables of PATH : C:Usersuser_nameAppDataLocalProgramsPythonPython35Scripts
  • 27. [solution 2] Adding those paths to the system environmental variable "PATH" permanently select System from Control Panel and click Advanced system settings
  • 28. In System Properties, click the button "Environment Variables..."
  • 29. Select Path and click the button "Edit", or just double click Path
  • 30. In Edit User Variable, append the new paths in Variable value and use semicolon ";" to separate each path, then keep clicking "OK" button to complete the setting. e.g. ;C:Usersuser_nameAppDataLocalProgramsPythonPython35;C: Usersuser_nameAppDataLocalProgramsPythonPython35Scripts
  • 31. In the command prompt, use echo %PATH% to check system environment variables of PATH has been updated with those two paths we need for python. And the commands of Python and pip can be applied successfully.
  • 32. Or reopen the Environment Variables window and double-click Path to check those two paths for Python has been included
  • 33. Remarks 1. The version of operating system (32-bit or 64-bit) on the device can be found from 2. For windows XP, it is suggested to install Python 3.4.4 since Python>=3.5 doesn't support windows XP. 3. For windows XP, download the .whl files with cp34 and win32 version for libraries installations. e.g. numpy-1.11.3+mkl-cp34-cp34m-win32.whl 4. If error occurs while installing, upgrade 'pip' first by using "pip install --upgrade pip", and then try again "pip install package_name.whl". 5. For windows XP, the Python34 was installed under C: by default, therefore, the following two paths need to be included to system environment variables of PATH to use Python and pip in the command prompt : C:Python34;C:Python34Scripts
  • 34. For Windows XP -> List of installations -> In the command prompt -> Check installations in Python 3.4.4 Shell
  • 35. -> List of installations -> In the command prompt  6. Python 3.6.0 is now distributed and the supported libraries are also available from the website http://www.lfd.uci.edu/~gohlke/ pythonlibs/
  • 36. -> Check installations in Python 3.6.0 Shell