Python installation on Mac using Commands & on windows
When I was writing this article, already python2 version 2.7.18 was & python3 3.10.4 version(stable) was released.
Here, I am going to provide commands only related python3. the reason behind this is simple as python3 is latest and is forward compatible.
1. Install Xcode:
Install Xcode command line tools(integrated development environment), it contains tools that Homebrew needs to function properly.
you need to execute below command in terminal to install Xcode ( shortcut to open terminal is command+space and then type Terminal)
xcode-select --install
Click install on the prompt is open & accept the Agreement to get it installed on your machine.
2. Install homebrew:
you need to execute below command on terminal to install homebrew.
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
you may read more about the command on https://brew.sh
3. Install python3:
Once you have brew installed on your machine. Simply hit below command to install python3 on your machine
brew install python3
and you are done !!!
Windows installation
- Download Python binaries from python.org
- Install the binaries( follow the prompt window)
- Add Python to system environment variables
- Install pip
- (Optional step) Install virtualenv using pip
Hope you have liked the topic !
Keep Reading, Keep Learning !!!
hit the follow button for more topics on Java, RestAssured, GraphQL, Selenium, JavaScript, JUnit, Jenkins, GitHub Actions, WebUI, SOAP & VBScripts
Also, DM me if you want me to add new topic of your choice urgently.