I get an error when I try to raise Python to 3 series using pyenv on Catalina

environment

mac OS Catalina Version 10.15.7 I have Xcode installed (Version 12.1), but it hasn't been open all the time

Ordinary procedure

$ python --version Check the current version with → 2.7. What should I do?

$ brew update

$ brew install pyenv Install pyenv with homebrew

$ pyenv install 3.6.5


 Here, the first error
 error contents
>zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1

 Because it came out

```$ brew install zlib```
 However, there is no particular change.

https://qiita.com/miyacomaru/items/a105800f938de7b908e0
 With reference to
```$ xcode-select --install```
 I did,
 > This software is currently not available from the software update server and cannot be installed.

 Will be alerted.

https://qiita.com/kuzira_vimmer/items/6b017896f9b44ae9f5c3
 I solved it by manually installing Command Line Tools from the page below with reference to this. (Dev account required? Is it OK to log in with an Apple ID? I had a Dev account, so I don't know which one)

https://developer.apple.com/download/more/

# I was able to install it! Next, "set to always use 3 series (3.6.5 in my case)"

 First, check the version

```$ pyenv versions```
 Confirm that pyenv is 3.6.5
```$ python --version```
 Then, 2.7.

## init pyenv
```$ pyenv init```
 Then

```# load pyenv automatically by appending```

#### **`python`**
```# the following to ~/.bash_profile

```eval "$(pyenv init -)"```

 Will come out, so


#### **`$ echo 'eval "$(pyenv init -)"' >> ~/.bash_profile`**

And it's done!

Finally $ python --version If you try, it should be 3 series.

Recommended Posts

I get an error when I try to raise Python to 3 series using pyenv on Catalina
What to do if you get an error when installing python with pyenv
What to do if you get an OpenSSL error when installing Python 2 with pyenv
I get [Error 2055] when trying to connect to MySQL on Heroku
When I try to import pandas on macOS I get the error No module named'_bz2'
[Solution] When I try to connect to CloudSQL with GAE, I get an ImportError only when using dev_appserver.
When I get an error with Pylint in Atom on Windows
I get an error when trying to install maec 4.0.1.0 with pip
When I get an error with PyInstaller
When I try to update the data on DynamoDB with Python (boto3), I get "ExpressionAttributeNames contains invalid key: Syntax error; key: <key name>"
When I try to upgrade pip, I get an infinite loop after failing to upgrade
Try to poke DB on IBM i with python + JDBC using JayDeBeApi
I want to improve efficiency with Python even in an experimental system (4) Use ser.close () when an error is thrown using try syntax
I get an error when I put a Python plugin in Visual Studio Code under the pyenv environment
[Python] I want to know the variables in the function when an error occurs!
When I try to use Jupiter notebook on Mac, I can only select python2
I get an Import Error in Python Beautiful Soup
Error due to conflict between python when using gurobi
I get an error when I put opencv in pyautoGUI
I tried to get an AMI using AWS Lambda
When you get an error in python scraping (requests)
Minimum memo when using Python on Mac (pyenv edition)
What I was addicted to when using Python tornado
I get an error when installing scipy on t2.micro because I don't have enough memory
Every time I try to read a csv file using pandas, I get a numpy error.
When I try to install mysqlclient with Django, I get error: command'gcc' failed with exit status 1.
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
Try to operate an Excel file using Python (Pandas / XlsxWriter) ①
Try to operate an Excel file using Python (Pandas / XlsxWriter) ②
List of libraries to install when installing Python using Pyenv
What to do when you get an error saying "Name resolution temporarily failed" on linux
When I installed python on macOS and used it, I got an error when I put an https connection
What to do if you get an Undefined error when trying to use pip with pyenv
I got an error when I tried to process luigi in parallel on windows, but the solution
I get an ImportError on appengine_config.py
Introducing Python using pyenv on Ubuntu 20.04
# Solution when pip install gives an error when using Anaconda on Windows 10
Error and solution when installing python3 with homebrew on mac (catalina 10.15)
[Python] Error and solution memo when using venv with pyenv + anaconda
Notes on installing Python using PyEnv
Try to log in to Netflix automatically using python on your PC
Try to get statistics using e-Stat
I get a can't set attribute when using @property in python
Install Python on CentOS using Pyenv
Error log output method when using Bottle framework on GAE / Python
[Python] I tried to get various information using YouTube Data API!
Install Python on CentOS using pyenv
About the error I encountered when trying to use Adafruit_DHT from Python on a Raspberry Pi
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
When I import TensorFlow to Python, I get "Import Error: DLL load failed: The specified module cannot be found."
I got an error when trying to install Xgboost and its solution
How to deal with OAuth2 error when using Google APIs from Python
I want to display an image on Jupyter Notebook using OpenCV (mac)
Try to build python and anaconda environment on Mac (by pyenv, conda)
I get a UnicodeDecodeError when trying to connect to oracle with python sqlalchemy
[Python] What to do when an error related to SSL authentication is returned
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
When I try to go back using chainer, it fits a little
[OSX] [pyenv] What to do when an SSL error occurs in pip
I get an error with import pandas.