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:
You can download it from the Python home page, I installed it using homebrew.
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.
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
https://www.python.org/downloads/
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"
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