简体   繁体   English

无法用pip安装factory_boy

[英]Trouble installing factory_boy with pip

I'm working on a Django project. 我正在研究一个Django项目。 I'm setting up my environment on another machine and when I run pip install factory_boy , I get the following traceback: 我正在另一台机器上设置我的环境,当我运行pip install factory_boy ,我得到以下回溯:

https://gist.github.com/JSweetman/35f59536d6b87a0ce8c0 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. 我在同一台机器上的不同环境中安装了factory_boy并且它工作正常,我不知道发生了什么。

You need to update setuptools . 您需要更新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. 根据你的操作系统和设置,在这些命令面前可能需要sudo ,但是如果你使用的是virtualenv,它应该不是问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM