##やろうとしていること
gspreadのインストール
##困っていること
~$ pip install gspread
を実行すると、
html
1 Could not find a version that satisfies the requirement gspread (from versions: ) 2No matching distribution found for gspread
と表示されて、インストールができません。
~$ sudo pip install gspread
を実行すると、
html
1Exception: 2Traceback (most recent call last): 3 File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main 4 status = self.run(options, args) 5 File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run 6 wb.build(autobuilding=True) 7 File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build 8 self.requirement_set.prepare_files(self.finder) 9 File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files 10 ignore_dependencies=self.ignore_dependencies)) 11 File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prepare_file 12 require_hashes 13 File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in populate_link 14 self.link = finder.find_requirement(self, upgrade) 15 File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requirement 16 all_candidates = self.find_all_candidates(req.name) 17 File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_candidates 18 for page in self._get_pages(url_locations, project_name): 19 File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages 20 page = self._get_page(location) 21 File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page 22 return HTMLPage.get_page(link, session=self.session) 23 File "/usr/lib/python2.7/dist-packages/pip/index.py", line 792, in get_page 24 "Cache-Control": "max-age=600", 25 File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get 26 return self.request('GET', url, **kwargs) 27 File "/usr/lib/python2.7/dist-packages/pip/download.py", line 386, in request 28 return super(PipSession, self).request(method, url, *args, **kwargs) 29 File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request 30 resp = self.send(prep, **send_kwargs) 31 File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send 32 r = adapter.send(request, **kwargs) 33 File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send 34 resp = super(CacheControlAdapter, self).send(request, **kw) 35 File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send 36 timeout=timeout 37 File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen 38 _stacktrace=sys.exc_info()[2]) 39 File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment 40 total -= 1 41TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
と表示されて、こちらもインストールできません。
何か他に必要なライブラリがあるのでしょうか。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。