问题
I'm working on a Django project. I'm setting up my environment on another machine and when I run pip install factory_boy
, I get the following traceback:
https://gist.github.com/JSweetman/35f59536d6b87a0ce8c0
Does anyone know what's happening? I installed factory_boy
in a different environment on the same machine and it worked so I'm not sure what's going on.
回答1:
You need to update setuptools
. Like so:
pip install setuptools --upgrade
and then
pip install factory_boy
should work. sudo
may be required in front of those commands depending on your os and setup, but if you're using a virtualenv it shouldn't be an issue.
来源:https://stackoverflow.com/questions/23771274/trouble-installing-factory-boy-with-pip