How to erase Python 2.x on Mac.

At the beginning. ..

Hello. This is Dreamwalker. Do you guys use Python?

It's a language that is loved by many programmers these days. I'm using the Pytion 2.7 version and wanted to upgrade to the 3.x version.

** Problem ** installed the 3.x version, but my girlfriend ** MAC ** is still using the 2.x version. It's sad, is not it. ..

I would like to briefly introduce how to erase the 2.x version with MAC. : metal:

Installation

You can download it from the Python home page, I installed it using homebrew.

Homebrew installation method.

First, open Terminal.

git


ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

[homebrew] http://brew.sh/

Since I installed it, it looks like below.

Screen Shot 2016-09-05 at 11.56.23 AM.png

How to install Python.

You can open the terminal.

brew


brew search python

Phytion 2.7.x installation

brew


brew install python

Phytion 3.x installation

brew


brew install python3

doctor〜!

brew


brew doctor

Python3 installation

https://www.python.org/downloads/

Uninstall Python 2.x

python path.

python


which python

Uninstall framework.

python


sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7

Uninstall from Application.

python


sudo rm -rf "/Applications/Python 2.7"

At the end

I have a basic python on my Mac. I don't want to recommend uninstalling it too much.

Using python3 in Terminal and using 3.x version I think it's better to use IDLE.

** Thank you for reading **. See you in the next Post!

Dreamwalker。

Recommended Posts

How to erase Python 2.x on Mac.
Update python on Mac to 3.7-> 3.8
How to install mysql-connector-python on mac
Steps to install python3 on mac
Update Python on Mac from 2 to 3
python on mac
How to install Theano on Mac OS X with homebrew
How to read pydoc on python interpreter
How to install drobertadams / toggl-cli on Mac
[Kivy] How to install Kivy on Windows [Python]
How to prepare Python development environment [Mac]
Memorandum on how to use gremlin python
[Blender x Python] How to use modifiers
How to rebuild python environment from pyenv on Mac environment (El Capitan)
How to install Theano on Mac OS X 10.10 (using pyenv, anaconda)
Install Python on Mac
How to install python
Install Python 3 on Mac
Install Python 3.4 on Mac
[2020 version] How to install Python3 on AWS EC2
Strategy on how to monetize with Python Java
How to install OpenCV on Jetson Nano Python
How to use Python Kivy ④ ~ Execution on Android ~
How to run MeCab on Ubuntu 18.04 LTS Python
Run Zookeeper x python (kazoo) on Mac OS X
[Algorithm x Python] How to use the list
How to erase the characters output by Python
Put Python 2.7.x on Mac OSX 10.15.5 with pyenv
[Blender x Python] How to make an animation
[Blender x Python] How to make vertex animation
[Python] How to install OpenCV on Anaconda [Windows]
Shpinx (Python documentation builder) on Mac OS X
[2020.8 latest] How to install Python
Think about how to program Python on the iPad
How to install Python [Windows]
python3: How to use bottle (2)
How to embed mod_wsgi into Apache on Python Windows
Install pygame on python3.4 on mac
[Blender x Python] How to create an original object
[Python] How to use list 1
How to auto-submit Microsoft Forms using python (Mac version)
How to build an environment for using multiple versions of Python on Mac
Steps to install the latest Python on your Mac
How to update Python Tkinter to 8.6
Very easy to install SciPy on Mac OS X
How to install caffe on OS X with macports
How to register on pypi
How to use Python argparse
Put Python 3.x on Ubuntu
Run Tensorflow 2.x on Python 3.7
Handling of python on mac
Install pandas 0.14 on python3.4 [on Mac]
Build a Python development environment on Mac OS X
Notes on installing Python on Mac
Python: How to use pydub
[Python] How to use checkio
How to run Notepad ++ Python
I want to AWS Lambda with Python on Mac!
How to exit when using Python in Terminal (Mac)
How to use Django on Google App Engine / Python
How to change Python version