Mac M1 -依赖于tensorflow的软件包安装不起作用

fzsnzjdm  于 2022-12-27  发布在  Mac
关注(0)|答案(1)|浏览(319)

我正在使用MacBook Pro M1,并尝试通过pip3 install dmol-book==1.3.2安装包dmol-book,它具有tensorflow依赖性。
它抛出以下错误:

ERROR: Ignored the following versions that require a different python version: 1.0.1 Requires-Python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3,!=3.4.*,<3.9; 1.1.0 Requires-Python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.9; 1.1.1 Requires-Python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.9
ERROR: Could not find a version that satisfies the requirement tensorflow>=2.7 (from dmol-book) (from versions: none)
ERROR: No matching distribution found for tensorflow>=2.7

我已通过安装tensorflow

pip3 install tensorflow-macos
pip3 install tensorflow-metal

我可以在python3中使用tensorflow

>>> import tensorflow
>>> tensorflow.__version__
'2.11.0'
>>> tensorflow.__file__
'/Users/username/.pyenv/versions/3.10.7/envs/venv/lib/python3.10/site-packages/tensorflow/__init__.py'

pip3 list不列出tensorflow,仅

tensorboard             2.11.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit  1.8.1
tensorboardX            2.5.1
tensorflow-estimator    2.11.0
tensorflow-macos        2.11.0
tensorflow-metal        0.7.0
tensorstore             0.1.28

tensorflow还显示为我创建的原始虚拟环境目录中的一个目录:/Users/username/pathtovirtualenv/venv/lib/python3.10/site-packages/tensorflow
有人能帮我解决这个问题吗?谢谢!

41ik7eoe

41ik7eoe1#

我认为这是因为它没有找到一个版本,满足所提到的要求。

相关问题