简体   繁体   English

在mac m1上安装Tensorflow

[英]Installing Tensorflow on mac m1

I am using PyCharm and in the Python Interpreter I install my packages.我正在使用 PyCharm 并在 Python 解释器中安装我的包。 In other words换句话说

In Pycharm: from Python 3.9 venv --> Interpreter Settings --> Install Package: Tensorflow (+) --> Search for Package --> Install

I almost got anything I want (numpy, scipy, pandas, even torch.), However: I tried to install Tensorflow and I get the following ERROR:我几乎得到了我想要的任何东西(numpy,scipy,pandas,甚至是手电筒。),但是:我尝试安装 Tensorflow,但出现以下错误:

ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow

So, I tried using the shell and it is already installed in my pip list with the version 2.4.0 as of today.所以,我尝试使用 shell,它已经安装在我的pip list中,版本为今天2.4.0

Since I am using a virtual env in PyCharm , is there a way that I can solve the error and have the package installed?由于我virtual env in PyCharm ,有没有办法可以解决错误并安装 package? OR how can I migrate the installed packages from my pip to this venv?或者如何将安装的包从我的 pip 迁移到这个 venv?

If you are an M1 user you would already know that working on apps is a headache with the new silicon apple Mac.如果您是 M1 用户,您就会知道使用新的硅苹果 Mac 处理应用程序是一件令人头疼的事情。

I look forward to some help and suggestions.我期待一些帮助和建议。

Thanks!谢谢!

Basically, at the time of posting this issue, tensorflow does not support Python 3.9 and only works for 3.8 .基本上,在发布此问题时, tensorflow 不支持Python 3.9并且仅适用于3.8

Further details are provided #47151提供了更多详细信息#47151

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM