You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mac M1(Monterey)虚拟环境中Python3.8无法安装TensorFlow

问题描述

我在Mac M1(Monterey)设备上,通过以下命令创建了关联Python 3.8版本的虚拟环境:

virtualenv --python=/opt/homebrew/bin/python3.8 ~/.virtualenvs/datascience_env 

随后在该虚拟环境中执行命令:

(datascience_env)% pip install tensorflow

出现如下错误:

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

为确认版本,我执行了:

(datascience_env)% python -c "import sys; print(sys.version)" or python -c "import struct; print(struct.calcsize('P')*8)"

输出结果确认当前Python版本为:

3.8.14 (default, Sep  6 2022, 23:17:06) 
[Clang 13.1.6 (clang-1316.0.21.2.5)]

内容的提问来源于stack exchange,提问作者Patrick

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.17 18:15:37