Tensorflow在Python 3.7,Mac OS和Pycharm上不起作用

问题描述 投票:0回答:1

以下尝试使用python 3.7和PyCharm运行Mac上的tensorflow并在enter image description here中接收module tensorflow has no attribute app,并在下面接收。

enter image description here

我已经尝试了许多潜在的解决方案。按照有关此问题的说明进行操作:Installing tensorflow on Pycharm (Mac)。我已经成功创建了一个虚拟环境,在其中安装了tensorflow软件包,但是该文件夹包含nothing but the init.py and pycache,错误仍然存​​在。

enter image description here

我也尝试过将tensorflow GitHub存储库的内容直接复制到此文件夹中,但结果为ImportError

不确定是什么问题。我应该切换到python 2.7吗?

tensorflow pycharm python-3.7
1个回答
0
投票

到目前为止,tensorflow仍不支持Python 3.7。

© www.soinside.com 2019 - 2024. All rights reserved.