(tensorflow) C:\Users\lihaoran>conda install pydot-ng Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: | Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment: Specifications: - pydot-ng -> python[version='2.7.*|3.4.*'] Your python: python=3.7 If python is on the left-most side of the chain, that's the version you've asked for. When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.
时间: 2024-02-01 21:01:55 浏览: 186
针对Collecting package metadata (current-repodata.json)- faile的解决
5星 · 资源好评率100%
这个错误是因为你的当前环境是 Python 3.7,但是 `pydot-ng` 要求 Python 版本为 2.7 或 3.4。你可以尝试在创建一个新的虚拟环境,并指定 Python 版本为 3.6 或以下版本,然后在该环境下安装 `pydot-ng`。你可以使用以下命令创建一个名为 `env_name` 的虚拟环境,并指定 Python 版本为 3.6:
```
conda create -n env_name python=3.6
```
然后激活该环境并安装 `pydot-ng`:
```
conda activate env_name
conda install pydot-ng
```
这样应该就可以成功安装了。
阅读全文