如何将 python 从 3.7 降级到 3.6 [英] How to downgrade python from 3.7 to 3.6

查看:344
本文介绍了如何将 python 从 3.7 降级到 3.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 tensorflow,但它需要安装 Python 3.6,而我只安装了 Python 3.7.我尝试使用 brew 和 pyenv 进行切换,但它不起作用.

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?

推荐答案

$ brew unlink python
$ brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/e128fa1bce3377de32cbf11bd8e46f7334dfd7a6/Formula/python.rb
$ brew switch python 3.6.5
$ pip install tensorflow

这篇关于如何将 python 从 3.7 降级到 3.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆