Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
生活随笔
收集整理的這篇文章主要介紹了
Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
1. 問題現(xiàn)象
安裝 opencv-python 時(shí)報(bào)錯(cuò):
wohu@ubuntu:~$ pip2 install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir --timeout=100000
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting opencv-pythonDownloading https://pypi.tuna.tsinghua.edu.cn/packages/a1/d6/8422797e35f8814b1d9842530566a949d9b5850a466321a6c1d5a99055ee/opencv-python-4.3.0.38.tar.gz (88.0MB)100% |████████████████████████████████| 88.0MB 5.1MB/s
Could not install packages due to an EnvironmentError: [Errno 28] No space left on devicewohu@ubuntu:~$
2. 解決方法
原因是 /tmp已滿,可對(duì) /tmp重定向:
wohu@ubuntu:~$ mkdir $HOME/tmp
wohu@ubuntu:~$ echo $TMPDIRwohu@ubuntu:~$ export TMPDIR=$HOME/tmp
wohu@ubuntu:~$ chmod -R 777 /tmp
重新安裝
wohu@ubuntu:~$ pip2 install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir --timeout=100000
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting opencv-pythonDownloading https://pypi.tuna.tsinghua.edu.cn/packages/a1/d6/8422797e35f8814b1d9842530566a949d9b5850a466321a6c1d5a99055ee/opencv-python-4.3.0.38.tar.gz (88.0MB)100% |████████████████████████████████| 88.0MB 1.9MB/s Installing build dependencies ... \
總結(jié)
以上是生活随笔為你收集整理的Could not install packages due to an EnvironmentError: [Errno 28] No space left on device的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2022-2028年中国丙烯酸酯橡胶行业
- 下一篇: 2022-2028年中国氯磺化聚乙烯橡胶