2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Install Python 3 on Mac

Last updated at Posted at 2017-11-21

1. Install Python 3

I bet the current Python version on your Mac is 2.X.

python -V # "2.7.10" on my Mac (macOS Sierra)

If so, let's install Python 3.

brew install python3

In brew install log, I think you saw some instructions about setting PATH to your ~/.bash_profile. I did that like this.


export PATH=~/Library/Python/3.6/bin:$PATH

Then you can use Python 3 with python3.
* Note that you can still use Python 2 with python.

python -V # You can still use Python 2
python3 -V

2. Check if you can use pip3

pip3 is a package management tool for Python 3, like npm for Node.js, gem for Ruby, and is automatically installed when you install Python 3.

Run this.

pip3 -V
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?