Jer*_*ugi 7 python turi-create
我试图使用安装 turicreate
pip install -U turicreate
但出现错误
由于环境错误,无法安装软件包:[Errno 28] 设备上没有剩余空间。我按照安装说明中的所有步骤进行操作。
有谁知道我该如何解决这个错误?
ene*_*epo 10
解决方案 1: 在此解决方案中,Pip 不会重新下载包,但在其他解决方案中会重新下载包
使用以下命令检查可用磁盘空间df -h:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/linux--vg-root 100G 29G 71G 29% /
tmpfs 2.0G 46M 1.9G 3% /tmp
tmpfs 394M 12K 394M 1% /run/user/1000
Run Code Online (Sandbox Code Playgroud)
如果您只需要更改 tmpfs 大小,可以使用新大小在线重新挂载它:
$ sudo mount -o remount,size=10G /run/user/1000 # User temp dir
$ sudo mount -o remount,size=10G /tmp # System-wide temp dir
Run Code Online (Sandbox Code Playgroud)
解决方案2: 您可以为pip设置环境变量'TMPDIR'
$ export TMPDIR=$HOME/new/tmp/dir
Run Code Online (Sandbox Code Playgroud)
解决方案 3: 使用自定义缓存/临时目录
$ pip install --cache-dir=$HOME/new/tmp/dir/ -U turicreate
Run Code Online (Sandbox Code Playgroud)
解决方案 4: 没有缓存目录
$ pip install --no-cache-dir -U turicreate
Run Code Online (Sandbox Code Playgroud)
小智 6
我使用以下命令让它工作
TMPDIR=/mnt/d/tmp/ pip install -U turicreate
Run Code Online (Sandbox Code Playgroud)
根据您的喜好更改临时文件夹路径('/mnt/d/tmp/')。
| 归档时间: |
|
| 查看次数: |
20399 次 |
| 最近记录: |