How to downgrade python from 3.7 to 3.6

2020-02-02 06:25发布

I'm trying to install tensorflow but it needs a Python 3.6 installation and I only have Python 3.7 installed. I tried to switch using brew and pyenv but it doesn't work.

Does anyone know of a way to solve this problem?

7条回答
SAY GOODBYE
2楼-- · 2020-02-02 07:19

Download python 3.6.0 from https://www.python.org/downloads/release/python-360/

Install it as a normal package.

Run cd /Library/Frameworks/Python.framework/Version

Run ls command and all installed Python versions will be visible here.

Run sudo rm -rf 3.7

Check the version now by python3 -V and it will be 3.6 now.

查看更多
登录 后发表回答