Python installation on Mac using Commands & on windows

Sachin Joshi
1 min readMay 11, 2022

--

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

  1. Download Python binaries from python.org
  2. Install the binaries( follow the prompt window)
  3. Add Python to system environment variables
  4. Install pip
  5. (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

https://medium.com/@sachinjoshi12687

Also, DM me if you want me to add new topic of your choice urgently.

--

--

Sachin Joshi

follow me for more topics on Java, RestAssured, GraphQL, Selenium, JavaScript, JUnit, Jenkins, GitHub Actions, WebUI, SOAP & VBScripts