gpt4 book ai didi

python - 无法在 python 3.12 中安装 matplotlib

转载 作者:行者123 更新时间:2023-12-03 07:50:30 25 4
gpt4 key购买 nike

当我尝试使用 miniconda 包管理器 在 conda 环境中安装 matplotlib 3.8.0 时,出现以下错误:

Solving environment: / warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
- cannot install both pin-1-1 and pin-1-1
- nothing provides numpy 1.10* needed by matplotlib-1.5.3-np110py34_1

Could not solve for environment specs
The following packages are incompatible
├─ matplotlib is installable with the potential options
│ ├─ matplotlib 1.5.3 would require
│ │ └─ numpy 1.10* , which does not exist (perhaps a missing channel);
│ ├─ matplotlib 1.5.3 would require
│ │ └─ python 3.4* but there are no viable options
│ │ ├─ python 3.4.5 would require
│ │ │ └─ vc 10.* , which does not exist (perhaps a missing channel);
│ │ └─ python 3.4.5 would require
│ │ └─ vs2010_runtime, which does not exist (perhaps a missing channel);
│ ├─ matplotlib 1.5.3 would require
│ │ └─ pyqt 4.11.* , which requires
│ │ └─ qt 4.8.* , which does not exist (perhaps a missing channel);
│ ├─ matplotlib [2.0.2|2.1.0|...|2.2.4] would require
│ │ └─ python >=2.7,<2.8.0a0 , which can be installed;
│ ├─ matplotlib [2.0.2|2.1.0|...|3.3.4] would require
│ │ └─ python >=3.6,<3.7.0a0 , which can be installed;
│ ├─ matplotlib [2.1.2|2.2.2|...|3.5.3] would require
│ │ └─ python >=3.7,<3.8.0a0 , which can be installed;
│ ├─ matplotlib [2.2.4|3.1.1|...|3.7.3] would require
│ │ └─ python >=3.8,<3.9.0a0 , which can be installed;
│ ├─ matplotlib 2.2.5 would require
│ │ └─ matplotlib-base >=2.2.5,<2.2.6.0a0 with the potential options
│ │ ├─ matplotlib-base 2.2.5 would require
│ │ │ └─ python >=2.7,<2.8.0a0 , which can be installed;
│ │ ├─ matplotlib-base [2.2.5|3.2.0|...|3.3.2] would require
│ │ │ └─ python >=3.6,<3.7.0a0 , which can be installed;
│ │ ├─ matplotlib-base [2.2.5|3.2.0|...|3.3.2] would require
│ │ │ └─ python >=3.7,<3.8.0a0 , which can be installed;
│ │ ├─ matplotlib-base [2.2.5|3.2.0|...|3.3.2] would require
│ │ │ └─ python >=3.8,<3.9.0a0 , which can be installed;
│ │ └─ matplotlib-base [2.2.5|3.3.2] would require
│ │ └─ python >=3.9,<3.10.0a0 , which can be installed;
│ ├─ matplotlib [3.2.0|3.2.1|3.2.2|3.3.0|3.3.1] would require
│ │ └─ matplotlib-base [>=3.2.0,<3.2.1.0a0 |>=3.2.1,<3.2.2.0a0 |>=3.2.2,<3.2.3.0a0 |>=3.3.0,<3.3.1.0a0 |>=3.3.1,<3.3.2.0a0 ], whic;
│ ├─ matplotlib 3.3.2 would require
│ │ └─ matplotlib-base >=3.3.2,<3.3.3.0a0 , which can be installed (as previously explained);
│ ├─ matplotlib [3.3.2|3.3.3|...|3.8.0] would require
│ │ └─ python >=3.9,<3.10.0a0 , which can be installed;
│ ├─ matplotlib [3.4.3|3.5.0|...|3.8.0] would require
│ │ └─ python >=3.10,<3.11.0a0 , which can be installed;
│ ├─ matplotlib [3.6.1|3.6.2|...|3.8.0] would require
│ │ └─ python >=3.11,<3.12.0a0 , which can be installed;
│ └─ matplotlib [2.0.2|2.1.0|...|3.0.0] would require
│ └─ python >=3.5,<3.6.0a0 , which can be installed;
└─ pin-1 is not installable because there are no viable options
├─ pin-1 1 would require
│ └─ python 3.12.* , which conflicts with any installable versions previously reported;
└─ pin-1 1 would require
└─ python 3.12.* , which conflicts with any installable versions previously reported.

Pins seem to be involved in the conflict. Currently pinned specs:
- python 3.12.* (labeled as 'pin-1')



(datasc) C:\Users\USER>conda install matplotlib -c conda-forge
Channels:
- conda-forge
- defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: \ warning libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
- cannot install both pin-1-1 and pin-1-1
- nothing provides numpy 1.10* needed by matplotlib-1.5.3-np110py34_1

Could not solve for environment specs
The following packages are incompatible
├─ matplotlib is installable with the potential options
│ ├─ matplotlib 1.5.3 would require
│ │ └─ numpy 1.10* , which does not exist (perhaps a missing channel);
│ ├─ matplotlib 1.5.3 would require
│ │ └─ python 3.4* but there are no viable options
│ │ ├─ python 3.4.5 would require
│ │ │ └─ vc 10.* , which does not exist (perhaps a missing channel);
│ │ └─ python 3.4.5 would require
│ │ └─ vs2010_runtime, which does not exist (perhaps a missing channel);
│ ├─ matplotlib 1.5.3 would require
│ │ └─ pyqt 4.11.* , which requires
│ │ └─ qt 4.8.* , which does not exist (perhaps a missing channel);
│ ├─ matplotlib [2.0.2|2.1.0|...|2.2.4] would require
│ │ └─ python >=2.7,<2.8.0a0 , which can be installed;
│ ├─ matplotlib [2.0.2|2.1.0|...|3.3.4] would require
│ │ └─ python >=3.6,<3.7.0a0 , which can be installed;
│ ├─ matplotlib [2.1.2|2.2.2|...|3.5.3] would require
│ │ └─ python >=3.7,<3.8.0a0 , which can be installed;
│ ├─ matplotlib [2.2.4|3.1.1|...|3.7.3] would require
│ │ └─ python >=3.8,<3.9.0a0 , which can be installed;
│ ├─ matplotlib 2.2.5 would require
│ │ └─ matplotlib-base >=2.2.5,<2.2.6.0a0 with the potential options
│ │ ├─ matplotlib-base 2.2.5 would require
│ │ │ └─ python >=2.7,<2.8.0a0 , which can be installed;
│ │ ├─ matplotlib-base [2.2.5|3.2.0|...|3.3.2] would require
│ │ │ └─ python >=3.6,<3.7.0a0 , which can be installed;
│ │ ├─ matplotlib-base [2.2.5|3.2.0|...|3.3.2] would require
│ │ │ └─ python >=3.7,<3.8.0a0 , which can be installed;
│ │ ├─ matplotlib-base [2.2.5|3.2.0|...|3.3.2] would require
│ │ │ └─ python >=3.8,<3.9.0a0 , which can be installed;
│ │ └─ matplotlib-base [2.2.5|3.3.2] would require
│ │ └─ python >=3.9,<3.10.0a0 , which can be installed;
│ ├─ matplotlib [3.2.0|3.2.1|3.2.2|3.3.0|3.3.1] would require
│ │ └─ matplotlib-base [>=3.2.0,<3.2.1.0a0 |>=3.2.1,<3.2.2.0a0 |>=3.2.2,<3.2.3.0a0 |>=3.3.0,<3.3.1.0a0 |>=3.3.1,<3.3.2.0a0 ], whic;
│ ├─ matplotlib 3.3.2 would require
│ │ └─ matplotlib-base >=3.3.2,<3.3.3.0a0 , which can be installed (as previously explained);
│ ├─ matplotlib [3.3.2|3.3.3|...|3.8.0] would require
│ │ └─ python >=3.9,<3.10.0a0 , which can be installed;
│ ├─ matplotlib [3.4.3|3.5.0|...|3.8.0] would require
│ │ └─ python >=3.10,<3.11.0a0 , which can be installed;
│ ├─ matplotlib [3.6.1|3.6.2|...|3.8.0] would require
│ │ └─ python >=3.11,<3.12.0a0 , which can be installed;
│ └─ matplotlib [2.0.2|2.1.0|...|3.0.0] would require
│ └─ python >=3.5,<3.6.0a0 , which can be installed;
└─ pin-1 is not installable because there are no viable options
├─ pin-1 1 would require
│ └─ python 3.12.* , which conflicts with any installable versions previously reported;
└─ pin-1 1 would require
└─ python 3.12.* , which conflicts with any installable versions previously reported.

Pins seem to be involved in the conflict. Currently pinned specs:
- python 3.12.* (labeled as 'pin-1')

我已将解算器设置为 libmamba,因此消息看起来有点不同。

除了将 python 降级到 3.9 之外,还有其他方法吗?我宁愿使用最新版本 3.12.0

最佳答案

在撰写问题时,python 3.12 才发布几天。 !您不必将 python 降级到 3.9。

  • 这是conda。您只需使用 python 3.9 的另一个环境并安装所需的任何内容。这就是 Conda 的用途。
  • Matplotlib 已经可以很好地与 Python 3.11 配合使用。不需要降到3.9
  • 确实,它才发布几天。给它一些时间。保留 python 3.11 环境并将其用于任何您想要使用 matplotlib 的地方。为 Python 3.12 的第一步保留 Python 3.12 环境,并时不时地尝试安装 matplotlib。在某些时候,matplotlib 将会出现。再等几天就好了。

关于python - 无法在 python 3.12 中安装 matplotlib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/77268673/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com