Advertisement
Guest User

Untitled

a guest
May 27th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. sunny@sunny:~$ sudo pip install Theano
  2. [sudo] password for sunny:
  3. The directory '/home/sunny/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  4. The directory '/home/sunny/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  5. Collecting Theano
  6. Exception:
  7. Traceback (most recent call last):
  8. File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main
  9. status = self.run(options, args)
  10. File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run
  11. requirement_set.prepare_files(finder)
  12. File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 360, in prepare_files
  13. ignore_dependencies=self.ignore_dependencies))
  14. File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 512, in _prepare_file
  15. finder, self.upgrade, require_hashes)
  16. File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 273, in populate_link
  17. self.link = finder.find_requirement(self, upgrade)
  18. File "/usr/lib/python2.7/dist-packages/pip/index.py", line 442, in find_requirement
  19. all_candidates = self.find_all_candidates(req.name)
  20. File "/usr/lib/python2.7/dist-packages/pip/index.py", line 400, in find_all_candidates
  21. for page in self._get_pages(url_locations, project_name):
  22. File "/usr/lib/python2.7/dist-packages/pip/index.py", line 545, in _get_pages
  23. page = self._get_page(location)
  24. File "/usr/lib/python2.7/dist-packages/pip/index.py", line 648, in _get_page
  25. return HTMLPage.get_page(link, session=self.session)
  26. File "/usr/lib/python2.7/dist-packages/pip/index.py", line 757, in get_page
  27. "Cache-Control": "max-age=600",
  28. File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 480, in get
  29. return self.request('GET', url, **kwargs)
  30. File "/usr/lib/python2.7/dist-packages/pip/download.py", line 378, in request
  31. return super(PipSession, self).request(method, url, *args, **kwargs)
  32. File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 468, in request
  33. resp = self.send(prep, **send_kwargs)
  34. File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 576, in send
  35. r = adapter.send(request, **kwargs)
  36. File "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py", line 46, in send
  37. resp = super(CacheControlAdapter, self).send(request, **kw)
  38. File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py", line 376, in send
  39. timeout=timeout
  40. File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 610, in urlopen
  41. _stacktrace=sys.exc_info()[2])
  42. File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 228, in increment
  43. total -= 1
  44. TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
  45. sunny@sunny:~$
  46.  
  47. easy_install --upgrade pip
  48. pip install --upgrade pip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement