安装 sFrame 包的问题
Posted
技术标签:
【中文标题】安装 sFrame 包的问题【英文标题】:Problems installing sFrame package 【发布时间】:2017-09-10 07:51:58 【问题描述】:此时我在从 github 安装此软件包时遇到问题 https://github.com/turi-code/SFrame 我用的是windows 10,是python 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】:我在 macOS 机器中使用 python 3,带有 virtualenv。我从它的pypi page 下载了 SFrame .tar.gz 包,然后使用 pip install SFrame-2.1-py2.7.tar.gz 安装它。这种方式对我有用。
【讨论】:
以上是关于安装 sFrame 包的问题的主要内容,如果未能解决你的问题,请参考以下文章