无法使用pip

时间:2018-08-11 20:09:53

标签: python python-2.7 tensorflow pip

我尝试了不同版本的tensorflow-gpu,但仍然看到相同的以下错误。我无权访问此计算机。知道是什么问题吗? 我不确定为什么要转到zipfile文件夹。

此外,由于我没有root访问权限,因此我没有使用最新版本的pip。我不确定那是否是这个问题。

Collecting tensorflow-gpu==1.6.0
  Downloading 
 (209.2MB)
100% |████████████████████████████████| 209.2MB 66.4MB/s 
Exception:
Traceback (most recent call last):
  File "/home/users/venv/lib/python2.7/site- 
packages/pip/_internal/basecommand.py", line 141, in main
    status = self.run(options, args)
  File "/home/users/venv/lib/python2.7/site- 
packages/pip/_internal/commands/install.py", line 299, in run
resolver.resolve(requirement_set)
  File "/home/users/venv/lib/python2.7/site- 
packages/pip/_internal/resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
  File "/home/users/venv/lib/python2.7/site- 
packages/pip/_internal/resolve.py", line 256, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/home/users/venv/lib/python2.7/site- 
packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
self.require_hashes
  File "/home/users/venv/lib/python2.7/site- 
packages/pip/_internal/operations/prepare.py", line 283, in 
prepare_linked_requirement
progress_bar=self.progress_bar
  File "/home/users/venv/lib/python2.7/site- 
packages/pip/_internal/download.py", line 836, in unpack_url
progress_bar=progress_bar
  File "/home/users/venv/lib/python2.7/site- 
packages/pip/_internal/download.py", line 677, in unpack_http_url
unpack_file(from_path, location, content_type, link)
  File "/home/usersvenv/lib/python2.7/site- 
packages/pip/_internal/utils/misc.py", line 578, in unpack_file
flatten=not filename.endswith('.whl')
  File "/home/users/venv/lib/python2.7/site- 
packages/pip/_internal/utils/misc.py", line 467, in unzip_file

data = zip.read(name)
File "/usr/lib64/python2.7/zipfile.py", line 931, in read
  return self.open(name, "r", pwd).read()
File "/usr/lib64/python2.7/zipfile.py", line 626, in read
  data = self.read1(n)
File "/usr/lib64/python2.7/zipfile.py", line 680, in read1
  max(n - len_readbuffer, self.MIN_READ_SIZE)
MemoryError

0 个答案:

没有答案