Mmdetection: DistutilsSetupError("each element of 'ext_modules' option must be an Extension instance or 2-tuple")

Created on 22 Jul 2020  路  8Comments  路  Source: open-mmlab/mmdetection

File "mmlab/lib/python3.7/distutils/command/build_ext.py", line 363, in check_extensions_list
"each element of 'ext_modules' option must be an "
setuptools.sandbox.UnpickleableException: DistutilsSetupError("each element of 'ext_modules' option must be an Extension instance or 2-tuple")

How to solve this problem? Thank you.

installatioenv

Most helpful comment

I also encounter such a problem. And I found out it's because I build the environment from miniconda instead of anaconda. So manually install Cython and pip install -r requirements.txt help me solve the problem.

All 8 comments

Please use the Error Template to provide more information.

I face the same situation here.
could somebody help?

Hi, I met the same problem. Did you find a solution?

I also encounter such a problem. And I found out it's because I build the environment from miniconda instead of anaconda. So manually install Cython and pip install -r requirements.txt help me solve the problem.

I also encounter such a problem. And I found out it's because I build the environment from miniconda instead of anaconda. So manually install Cython and pip install -r requirements.txt help me solve the problem.

Yes! you save me

I also encounter such a problem. And I found out it's because I build the environment from miniconda instead of anaconda. So manually install Cython and pip install -r requirements.txt help me solve the problem.

Thanks for your kind solution, would you like to update your experience to the trouble shooting documentation thus it could benefit more people? PRs are welcomed.

Have you fixed it ? I have met the same problem as you.

@KevinQian97

Was this page helpful?
0 / 5 - 0 ratings