从git安装Python包pathos

时间:2015-01-10 05:13:54

标签: python git pip easy-install pathos

我正在尝试从git安装 pathos 库,但收到以下错误:

>pip install https://github.com/uqfoundation/pathos

Exception:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip\commands\install.py", line 278, in run

    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundl
e=self.bundle)
  File "C:\Python27\lib\site-packages\pip\req.py", line 1197, in prepare_files
    do_download,
  File "C:\Python27\lib\site-packages\pip\req.py", line 1375, in unpack_url
    self.session,
  File "C:\Python27\lib\site-packages\pip\download.py", line 582, in unpack_http
_url
    unpack_file(temp_location, location, content_type, link)
  File "C:\Python27\lib\site-packages\pip\util.py", line 627, in unpack_file
    and is_svn_page(file_contents(filename))):
  File "C:\Python27\lib\site-packages\pip\util.py", line 210, in file_contents
    return fp.read().decode('utf-8')
  File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte

这里有什么问题,我该如何解决? 感谢

编辑1:

尝试以下方法:

pip install git + https://github.com/uqfoundation/pathos

......但仍然没有运气:

>pip install git+https://github.com/uqfoundation/pathos
Downloading/unpacking git+https://github.com/uqfoundation/pathos
  Cloning https://github.com/uqfoundation/pathos to c:\users\gronin\appdata\local\temp\pip-qstvgd-build
Cleaning up...
Cannot find command 'git'

编辑2:

尝试了 cel 推荐的以下内容:

pip install git + https://github.com/uqfoundation/pathos

...这肯定解决了查找问题(谢谢,cel),仍然存在安装问题:

Downloading/unpacking git+https://github.com/uqfoundation/pathos
Cloning https://github.com/uqfoundation/pathos to c:\users\gronin\appdata\loca
l\temp\pip-jldriz-build
Running setup.py (path:c:\users\gronin\appdata\local\temp\pip-jldriz-build\set
up.py) egg_info for package from git+https://github.com/uqfoundation/pathos

Downloading/unpacking pp>=1.6.4.4 (from pathos==0.2a1.dev)
Could not find any downloads that satisfy the requirement pp>=1.6.4.4 (from pathos==0.2a1.dev)

1 个答案:

答案 0 :(得分:3)

我有一个早该发布的pathos版本,我需要推出(本月)。我会看到我能做些什么才能让它pip可安装。有两个主要问题:(1)软件包的已发布版本以非标准方式命名(例如0.2.a1-dev),(2)几个依赖项是从其他软件包分叉的,并且仅在{ {3}}。 (1)的临时解决方法是使用--pre的{​​{1}}标志进行安装以及使用pip,或者手动安装(git+https实际上有效)。 (2)的解决方法也是@cel建议的......下载依赖项并手动安装(或使用easy_install)。

这将在稳定版本中进行整理。它基本上是阻止发布的阻塞问题 - 主要是由于上面的(2)。

在此处跟踪此问题的状态:http://dev.danse.us/packages