使用pip安装factory_boy时遇到问题 [英] Trouble installing factory_boy with pip
问题描述
我正在研究Django项目.我正在另一台计算机上设置环境,当我运行pip install factory_boy
时,得到以下回溯:
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
有人知道发生了什么吗?我将factory_boy
安装在同一台计算机上的不同环境中,并且可以正常工作,所以我不确定发生了什么.
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.
推荐答案
您需要更新setuptools
.像这样:
pip install setuptools --upgrade
然后
pip install factory_boy
应该工作.根据您的操作系统和设置,在这些命令前可能需要sudo
,但是如果您使用的是virtualenv,就不成问题了.
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.
这篇关于使用pip安装factory_boy时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!