Trouble installing factory_boy with pip

£可爱£侵袭症+ 提交于 2019-12-11 08:36:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!