[已解决] 使用了extroot扩展SD卡,使用pip时还会提示 IOError: [Errno 28] No space left on device

按照wiki上的方法,使用了extroot扩展SD卡,但在使用pip安装时还会报空间不足的错误
pip install --upgrade google-assistant-sdk[samples]
输出信息如下:
Downloading/unpacking google-assistant-sdk[samples]
Downloading google_assistant_sdk-0.4.4-py2.py3-none-any.whl
Downloading/unpacking google-auth-oauthlib[tool]>=0.1.0 (from google-assistant-sdk[samples])
Downloading google_auth_oauthlib-0.2.0-py2.py3-none-any.whl
Downloading/unpacking futures>=3.1.1,<4 (from google-assistant-sdk[samples])
Downloading futures-3.2.0-py2-none-any.whl
Downloading/unpacking pathlib2>=2.3.0,<3 (from google-assistant-sdk[samples])
Downloading pathlib2-2.3.0-py2.py3-none-any.whl
Downloading/unpacking urllib3[secure]>=1.21,<2 (from google-assistant-sdk[samples])
Downloading urllib3-1.22-py2.py3-none-any.whl (132kB): 132kB downloaded
Downloading/unpacking tenacity>=4.1.0,<5 (from google-assistant-sdk[samples])
Downloading tenacity-4.10.0-py2.py3-none-any.whl
Downloading/unpacking click>=6.7,<7 (from google-assistant-sdk[samples])
Downloading click-6.7-py2.py3-none-any.whl (71kB): 71kB downloaded
Downloading/unpacking google-assistant-grpc==0.1.0 (from google-assistant-sdk[samples])
Downloading google_assistant_grpc-0.1.0-py2.py3-none-any.whl
Downloading/unpacking sounddevice>=0.3.7,<0.4 (from google-assistant-sdk[samples])
Downloading sounddevice-0.3.10-py2.py3-none-any.whl
Downloading/unpacking google-auth (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples])
Downloading google_auth-1.4.1-py2.py3-none-any.whl (65kB): 65kB downloaded
Downloading/unpacking requests-oauthlib>=0.7.0 (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples])
Downloading requests_oauthlib-0.8.0-py2.py3-none-any.whl
Downloading/unpacking scandir (from pathlib2>=2.3.0,<3->google-assistant-sdk[samples])
Downloading scandir-1.7.tar.gz
Running setup.py (path:/tmp/pip_build_root/scandir/setup.py) egg_info for package scandir
Downloading/unpacking six (from pathlib2>=2.3.0,<3->google-assistant-sdk[samples])
Downloading six-1.11.0-py2.py3-none-any.whl
Downloading/unpacking ipaddress (from urllib3[secure]>=1.21,<2->google-assistant-sdk[samples])
Downloading ipaddress-1.0.19.tar.gz
Running setup.py (path:/tmp/pip_build_root/ipaddress/setup.py) egg_info for package ipaddress
Downloading/unpacking cryptography>=1.3.4 (from urllib3[secure]>=1.21,<2->google-assistant-sdk[samples])
Downloading cryptography-2.2.2.tar.gz (443kB): 443kB downloaded
Running setup.py (path:/tmp/pip_build_root/cryptography/setup.py) egg_info for package cryptography
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
Downloading/unpacking idna>=2.0.0 (from urllib3[secure]>=1.21,<2->google-assistant-sdk[samples])
Downloading idna-2.6-py2.py3-none-any.whl (56kB): 56kB downloaded
Downloading/unpacking pyOpenSSL>=0.14 (from urllib3[secure]>=1.21,<2->google-assistant-sdk[samples])
Downloading pyOpenSSL-17.5.0-py2.py3-none-any.whl (53kB): 53kB downloaded
Downloading/unpacking certifi (from urllib3[secure]>=1.21,<2->google-assistant-sdk[samples])
Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB): 151kB downloaded
Downloading/unpacking monotonic>=0.6 (from tenacity>=4.1.0,<5->google-assistant-sdk[samples])
Downloading monotonic-1.4-py2.py3-none-any.whl
Downloading/unpacking grpcio>=1.3.5 (from google-assistant-grpc==0.1.0->google-assistant-sdk[samples])
Downloading grpcio-1.10.1.tar.gz (14.0MB): 14.0MB downloaded
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1197, in prepare_files
do_download,
File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1375, in unpack_url
self.session,
File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/download.py", line 582, in unpack_http_url
unpack_file(temp_location, location, content_type, link)
File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 625, in unpack_file
untar_file(filename, location)
File "/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 586, in untar_file
shutil.copyfileobj(fp, destfp)
File "/usr/lib/python2.7/shutil.py", line 52, in copyfileobj
fdst.write(buf)
IOError: [Errno 28] No space left on device

Storing debug log for failure in /root/.pip/pip.log
已邀请:

繁华

赞同来自:

知道问题原因了,因为pip install时会把包下载解压到/tmp,而extroot并没有包括/tmp,使用pip install 的 -d 参数指定下载目录即可

要回复问题请先登录注册