python - 将 Python 3.7 添加到 Anaconda
问题描述
我目前的 anaconda 只有 python 3.8 和 3.9。
python 3.8.5 h05baefb_8_cpython conda-forge
python 3.8.6 h12cc5a1_1_cpython conda-forge
python 3.8.6 h12cc5a1_2_cpython conda-forge
python 3.8.6 h12cc5a1_3_cpython conda-forge
python 3.8.6 h12cc5a1_4_cpython conda-forge
python 3.8.6 h12cc5a1_5_cpython conda-forge
python 3.8.6 h3098bc4_0_cpython conda-forge
python 3.8.8 h12cc5a1_0_cpython conda-forge
python 3.9.0 h4b4120c_5_cpython conda-forge
python 3.9.0 hd001b3a_0_cpython conda-forge
python 3.9.0 hd001b3a_1_cpython conda-forge
python 3.9.0 hd001b3a_2_cpython conda-forge
python 3.9.0 hd001b3a_3_cpython conda-forge
python 3.9.0 hf1b0709_4_cpython conda-forge
python 3.9.1rc1 h4b4120c_0_cpython conda-forge
python 3.9.1rc1 h4b4120c_1_cpython conda-forge
python 3.9.1 h4b4120c_0_cpython conda-forge
python 3.9.1 hcbd9b3a_1_cpython conda-forge
python 3.9.1 hcbd9b3a_2_cpython conda-forge
python 3.9.1 hcbd9b3a_3_cpython conda-forge
python 3.9.1 hcbd9b3a_4_cpython conda-forge
python 3.9.1 hcbd9b3a_5_cpython conda-forge
python 3.9.2 hcbd9b3a_0_cpython conda-forge
这是我输入时输出的内容conda search --full-name python
现在我想安装 tensorflowjs 但为此我需要 tensorflow,但pip install tensorflow
给了我这个错误
ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow
我的虚拟环境中的 python 版本是 3.8.8,但我认为我需要使用较低版本,但是当尝试使用它安装 python 3.7 时,conda install -c anaconda python=3.7
它给了我这个
- python=3.7
Current channels:
- https://conda.anaconda.org/anaconda/osx-arm64
- https://conda.anaconda.org/anaconda/noarch
- https://repo.anaconda.com/pkgs/main/osx-arm64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-arm64
- https://repo.anaconda.com/pkgs/r/noarch
- https://conda.anaconda.org/conda-forge/osx-arm64
- https://conda.anaconda.org/conda-forge/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
我不知道如何在我的 conda 中获取 python 3.7,请帮忙!
解决方案
所以我解决了这个问题......我使用https://nektony.com/mac-app-cleaner从我的 Mac 中完全删除了 Anaconda ,我的频道完全坏了,但现在我可以使用以前的 Python 版本。另外我认为它们被破坏的原因是因为我确实遵循了为 M1 Mac 安装 tensorflow fork 的教程,这可能已经破坏了一些东西。
推荐阅读
- android - PlatformExtension 无法在 Android 上的 Delphi 中编译
- arrays - CPLEX:如何获取数组的最大值/最小值?
- javascript - 在正则表达式中重新替换
- latex - Tabularx 在 Tikz 节点中的行为不同
- vhdl - 高阻信号不进入测试台【VHDL】
- python - Python json.loads 导致额外数据异常
- apache-kafka - 在 Confluent Kafka Python 客户端中指定复制因子
- javascript - 以 NODE_ENV 行开头的 Grails run-app services javascript
- python - 我想用 python 为电报机器人编写一个计时器。机器人从用户的 msg (str) 中获取“时间”。如何将“时间”从 msg 转换为 (int) 类型?
- javascript - if/else函数怎么写?