1. 问题
当使用conda安装包时,搭建轮子会默认使用home目录下的存储,但是有时候一次性安装的包比较多,home目录又小得可怜就会遇到如下报错:
Building wheels forcollected packages: icvi.ete3,pybedtools , docopt, pysamWARNING: BuildingWARNING:BuildingBuildingWARNING:WARNING:Buildingwheel for docopt failed: [Errno 122] Disk quota exceeded:wheel for pysam failed: [Errno 122] Disk quota exceeded:WARNING: BuldingFailed to build jcvi ete3 pybedtools docopt pysamWARNING: There was an error checking the latest version of pip
wheel for jcvi failed: [Errno 122] Disk quota exceeded: '/home/yanyuting/.cache/pip/wheels
wheel for ete3 failed: [Errno 122] Disk quota exceeded: ' /home/yanyuting/.cache/pip/wheels
wheel for pybedtools failed: [Errno 122] Disk quota exceeded: ' /home/yanyuting/.cache/pip/wheels
'/home/yanyuting/ .cache/pip/wheels!
' /home/yanyuting/.cache/pip/wheels!
ERROR: Could not build wheels for jcvi, ete3, pybedtools, docopt, pysam, which is required to install pyproject.toml-based projects
主要是which is required to install pyproject.toml-based projects
没内存弄完的问题
2. 解决
一般就是把home目录下的.cache路径删除掉就行了,或者删掉其他一些不同的文件,给足够的空间,这对于安装小的包其实够用了
但是建议可以直接修改conda的缓存路径,可以在config文件里面修改,也可以通过命令修改
mkdir path/.cache # 在非home目录下的任意盘下面创建cache文件夹
pip config set global.cache-dir path/.cache
# rm -rf home/user/.cache # 删除home目录下的cache文件(optic)
网友评论