以下尝试使用python 3.7和PyCharm运行Mac上的tensorflow并在中接收module tensorflow has no attribute app
,并在下面接收。
我已经尝试了许多潜在的解决方案。按照有关此问题的说明进行操作:Installing tensorflow on Pycharm (Mac)。我已经成功创建了一个虚拟环境,在其中安装了tensorflow软件包,但是该文件夹包含nothing but the init.py and pycache,错误仍然存在。
我也尝试过将tensorflow GitHub存储库的内容直接复制到此文件夹中,但结果为ImportError
。
不确定是什么问题。我应该切换到python 2.7吗?
到目前为止,tensorflow仍不支持Python 3.7。