命令" python setup.py egg_info"安装包

时间:2016-09-06 11:57:52

标签: python django pip

我正在尝试从克隆的Django项目的requirements.txt文件中安装一堆依赖项。但是,当它尝试安装其中一个时,vobject-0.8.1c会显示以下错误,并且没有安装任何依赖项:

  

命令" python setup.py egg_info"失败,错误代码为1   C:\用户\ XXXXXX \应用程序数据\本地\ TEMP \ PIP-集结n_0xlr \ VOBJECT \

这就是我尝试安装这些软件包的方法:

pip install -r requirements.txt

我花了好几个小时试图解决这个问题。我看到的所有问题都建议安装或升级setuptoolsez_setup。我已经做到了,我仍然得到错误,所以项目仍然有大量的遗漏依赖。

我在Windows上。

我该怎么办?我该如何安装这些依赖项?

1 个答案:

答案 0 :(得分:0)

安装0.8.2。这是第一个可安装的pip版本。所有文件与0.8.1c版本中的文件相同,除了:

<强> base.py

286a287,288
>         for k,v in self.params.items():
>             self.params[k] = copy.copy(v)
630,631c632,633
<     def __init__(self, message, lineNumber=None):
<         self.message = message
---
>     def __init__(self, msg, lineNumber=None):
>         self.msg = msg
637c639
<                    (self.lineNumber, self.message)
---
>                    (self.lineNumber, self.msg)
639c641
<             return repr(self.message)
---
>             return repr(self.msg)
956c958,960
<         for key, paramvals in obj.params.iteritems():
---
>         keys = sorted(obj.params.iterkeys())
>         for key in keys:
>             paramvals = obj.params[key]

icalendar.py

428a429,440
>                         
>                         # RFC2445 actually states that UNTIL must be a UTC value. Whilst the
>                         # changes above work OK, one problem case is if DTSTART is floating but
>                         # UNTIL is properly specified as UTC (or with a TZID). In that case dateutil
>                         # will fail datetime comparisons. There is no easy solution to this as
>                         # there is no obvious timezone (at this point) to do proper floating time
>                         # offset compisons. The best we can do is treat the UNTIL value as floating.
>                         # This could mean incorrect determination of the last instance. The better
>                         # solution here is to encourage clients to use COUNT rather than UNTIL
>                         # when DTSTART is floating.
>                         if dtstart.tzinfo is None:
>                             until = until.replace(tzinfo=None)
476c488
<             if hasattr(self.contents, name):
---
>             if name in self.contents:

版本更改应该没有问题。