1

所以,我有一个 python 项目,我的所有测试都在其中运行,但是我这样做了:

conda install -y conda-pack

成功了,当我运行时:

conda-pack

我收到了很长的投诉:

Collecting packages...
CondaPackError: 
Files managed by conda were found to have been deleted/overwritten in the
following packages:

- conda-pack 0.6.0:
    lib/python3.1/site-packages/conda_pack-0.6.0.dist-info/INSTALLER
    lib/python3.1/site-packages/conda_pack-0.6.0.dist-info/LICENSE.txt
    lib/python3.1/site-packages/conda_pack-0.6.0.dist-info/METADATA
    + 19 others
- types-requests 2.26.0:
    lib/python3.1/site-packages/requests-stubs/METADATA.toml
    lib/python3.1/site-packages/requests-stubs/__init__.pyi
    lib/python3.1/site-packages/requests-stubs/adapters.pyi
    + 41 others
- jsonschema 4.2.1:
    lib/python3.1/site-packages/jsonschema-4.2.1.dist-info/COPYING
    lib/python3.1/site-packages/jsonschema-4.2.1.dist-info/INSTALLER
    lib/python3.1/site-packages/jsonschema-4.2.1.dist-info/METADATA
    + 39 others
- types-setuptools 57.4.2:
    lib/python3.1/site-packages/pkg_resources-stubs/METADATA.toml
    lib/python3.1/site-packages/pkg_resources-stubs/__init__.pyi
    lib/python3.1/site-packages/pkg_resources-stubs/py31compat.pyi
    + 56 others
<snip>

我没有看到任何问题,conda list我仍然可以运行我的测试。我认为我的环境没有问题。想法?

4

1 回答 1

0

Conda 4.10 与 python 3.10 不兼容。

尝试更新您的 conda 或将您的 python 恢复到 3.9 或更早版本。在这个 SO answer 中阅读更多内容,其中提出了类似的问题。

于 2022-01-28T19:39:27.723 回答