用docker源码编译paddle失败
Created by: alexqdh
执行步骤"安装开发工具到 Docker image 里"的时候遇到报错,看着也不像是被墙了,请帮忙看下,谢谢
cd paddle; docker build -t paddle:dev .
报错信息:
Successfully built docopt PyYAML MarkupSafe
Installing collected packages: docopt, PyYAML, alabaster, MarkupSafe, Jinja2, snowballstemmer, pytz, babel, imagesize, setuptools, Pygments, typing, docutils, certifi, chardet, idna, urllib3, requests, six, sphinxcontrib-websupport, sphinx
Found existing installation: pytz 2014.10
Uninstalling pytz-2014.10:
Successfully uninstalled pytz-2014.10
Found existing installation: setuptools 20.7.0
Uninstalling setuptools-20.7.0:
Successfully uninstalled setuptools-20.7.0
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 795, in install
requirement.commit_uninstall()
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 767, in commit_uninstall
self.uninstalled.commit()
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_uninstall.py", line 142, in commit
rmtree(self.save_dir)
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/retrying.py", line 212, in call
raise attempt.get()
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py", line 102, in rmtree
onerror=rmtree_errorhandler)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py", line 110, in rmtree_errorhandler
if os.stat(path).st_mode & stat.S_IREAD:
OSError: [Errno 2] No such file or directory: '/tmp/pip-HxcE09-uninstall/usr/bin/easy_install'
The command '/bin/sh -c pip install --upgrade pip && pip install -U wheel && pip install -U docopt PyYAML sphinx && pip install -U sphinx-rtd-theme==0.1.9 recommonmark' returned a non-zero code: 2