安装sFrame包时出现问题

时间:2017-04-14 04:01:02

标签: python git python-2.7 sframe

此刻我从github安装此软件包时遇到问题 https://github.com/turi-code/SFrame 我用的是windows 10,它是pyhton 2.7版本。

我试图使用

pip install https://github.com/turi-code/SFrame

它不起作用。

然后我尝试使用

pip install --process-dependency-links 

的git + SSH://git@github.com/nhooey/package.git

Invalid requirement: ''git+ssh://git@github.com/turi-code/SFrame.git''
Traceback (most recent call last):
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\packaging\requirements.py", line 92, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1617, in parseString
    raise exc
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1607, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 3376, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 3698, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 3359, in parseImpl
    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 1383, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\pyparsing.py", line 2670, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pip._vendor.pyparsing.ParseException: Expected W:(abcd...) (at char 0), (line:1, col:1)

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
  File "c:\users\enver\anaconda3\lib\site-packages\pip\req\req_install.py", line 82, in __init__
    req = Requirement(req)
  File "c:\users\enver\anaconda3\lib\site-packages\pip\_vendor\packaging\requirements.py", line 96, in __init__
    requirement_string[e.loc:e.loc + 8]))
pip._vendor.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at ""'git+ssh""

然后我从github下载了包并使用

pip install c:\Python27\Scripts\SFrame-master\cxxtest\python

Processing c:\python27\scripts\sframe-master\cxxtest\python
    Complete output from command python setup.py egg_info:
    running egg_info
    error: error in 'egg_base' option: 'pip-egg-info' does not exist or is not a directory
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Enver\AppData\Local\Temp\pip-66c2rgaw-build\

有任何想法请安装此套餐吗?

1 个答案:

答案 0 :(得分:1)

我在macOS机器中使用python 3,使用 virtualenv 。我从pypi page下载了SFrame .tar.gz包,然后使用 pip install SFrame-2.1-py2.7.ta​​r.gz 安装它。这样它对我有用。