Error importing deeplabcut "ValueError: code: varnames is too small"


I am having an issue importing deeplabcut from python. It gives me the following error:

This error is the same in jupyter notebook and in from ipython.

I’m pretty sure I installed everything according to the stated guidelines found on githuib, but I have not been able to overcome this seemingly small hurdle.

I would appreciate any help!

Javier C. Weddington

Hi Javier, welcome to the forum! Could you confirm/test:


import tensorflow 


import deeplabcut

Hi MathisLab Member,

Thank you for getting back to me!

I have attached a screenshot of me carrying out ipython, import tensorflow, “Version”, import deeplabcut. I get the same error. What should I do next?

inside your env could you run pip install --upgrade deeplabcut just to be sure the install is fine?


I ran pip install --upgrade deeplabcut and it returned that all conditions are satisfied.

and same issue?

you can also force reinstall:

pip install --upgrade --force-reinstall deeplabcut

Wow! It works now! Thanks MathisLab Members!

Javier C. Weddington

no problem.