Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. detectron2 0.2 requires pycocotools>=2.0.1, but you have pycocotools 2.0 which is incompatible. #6

Open
Micla-SHL opened this issue Oct 12, 2023 · 4 comments

Comments

@Micla-SHL
Copy link

  我是本机cuda 11.8 ,所以我采取torch官方安装命令conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.8 -c pytorch -c nvidia

其余安装包是 yapf==0.40.1 指定了版本。现在有标题的error,目前是可以忽视它,因为我还不会用,这个错误是版本冲突,因为安装链接都指向了最新,所以这种错误该怎么规避比较好。我无法直接pip install pycocotools==2.0.1 ,这将导致Failed to build pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects。在此之前我是如何解决的呢,我自己 pip install cython 解决的,虽然现在requirements.txt 有包含cython,但是不起作用。在我手动安装cython后 ,不再有前述问题,(训练、测试代码都没问题的。)然而当我更新某python包,它会提示标题错误,然后我pip install pycocotools==2.0.1 就开始前述错误。这标题问题有好解决办法吗?

@mxin262
Copy link
Owner

mxin262 commented Oct 23, 2023

试一下先卸载了你本身的pycocotools,再安装detectron2

@Micla-SHL
Copy link
Author

Micla-SHL commented Oct 23, 2023 via email

@mxin262
Copy link
Owner

mxin262 commented Nov 19, 2023

可以尝试把denoise关掉来节省显存

@Micla-SHL
Copy link
Author

Micla-SHL commented Nov 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants