我正在使用Google创建一个深度学习模型,当我第一次在上运行这段代码时,我将面临一个问题。
!p7zip -d filename.7z我收到以下信息:
/usr/bin/p7zip: cannot read filename.7z但是,当我再次运行相同的单元格时,代码可以工作。
你知道这个问题的原因吗?
发布于 2019-03-21 14:55:42
首先,在我的例子中,必须在文件名之前指定路径。
!mkdir ~/data
!cd ~/data
!mkdir planet
!cd planet
# -c: competition name
# -f: which file you want to download
# -p: path to where the file should be saved
!kaggle competitions download -c planet-understanding-the-amazon-from-space -f train-jpg.tar.7z -p ~/data/planet/
# Unzip the 7zip files
# -d: which file to un7zip
!p7zip -d ~/data/planet/test-jpg.tar.7zhttps://stackoverflow.com/questions/53315282
复制相似问题