Purpose:
For some tools like redfishtool shall be running in the Python environment. In this article will introduce how to install the python3 on Windows 10.
Target Audience:
For those whom has the basic concept on redfish, python, pip and would like to use some tools like redfishtool on Windows 10. The user should know how to install application under Microsoft Store and how to use command line under Windows PowerShell.
Install Procedures:
1. Open the Microsoft Store:
In the search of Windows, please enter "Microsoft Store" and press "Enter" key
2. Search the "python" application
In the search of "Microsoft Store" and enter "python" then press "Enter" key
3. Choose the python version that you preferred or suggest to choose the latest version
Click the python that you want to install. Then click the "Get" to get the preferred version of python.
4. Start to install python
Stay tuned and wait for the installation progress bar completed.
5. Check the installation is completed and version of python
Open a PowerShell and run the "python -V" or "python --version" to check the installed python version
PS C:\Users\[username]> python --version
Python 3.9.6
6. Check version of pip (pip could install extra package out of standard python package). And upgrade pip if necessary.
Open a PowerShell and run the "pip -V" or "pip --version" to check the installed pip version
# Check the version of pip
PS C:\Users\[username]> pip -V
pip 21.1.3 from C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1776.0_x64__qbz5n2kfra8p0\lib\site-packages\pip (python 3.9)
# Upgrade pip if necessary
PS C:\Users\[username]> python -m pip install --upgrade pip
Requirement already satisfied: pip in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.9_3.9.1776.0_x64__qbz5n2kfra8p0\lib\site-packages (21.1.3)
# Check the pip version again
PS C:\Users\[username]> pip --version
pip 21.1.3 from C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1776.0_x64__qbz5n2kfra8p0\lib\site-packages\pip (python 3.9)
# Note: No version changed in this case.
7. Test python via interactive mode to print the "Hello, World!".
Please run python in the PowerShell and execute "print("Hello, World!" then enter "quit()" to exit python.
PS C:\Users\[username]> python
Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello, World!")
Hello, World!
>>> quit()
PS C:\Users\[username]>
--- End of this article ---
Comments
0 comments
Please sign in to leave a comment.