ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory:报错处理

发布时间 2023-12-29 21:30:41作者: 浪矢-CL

在安装compressai的时候,想用它自带的setup.py把相应库安装好,但是需要先下载pybind11
下载时遇到如下问题:
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory
据说是包管理器有一些缓存文件导致的,因此清了一下缓存。
pip cache purge
重新下载就可以了