如果解压缩,我有一个conda_package.tar.bz2,其结构如下
conda_package
├── info
├── site-packages
└── mycode
我需要在mycode
下添加一个configs.txt文件
我尝试解压缩tar.bz2文件并使用以下命令添加config.txt文件:
mkdir -p conda_package
tar -jxf conda_package.tar.bz2 -C conda_package
cp configs.txt conda_package/site-packages/mycode
rm -rf conda_package.tar.bz2
tar -cvjSf conda_package.tar.bz2 conda_package
上述命令成功运行,但在尝试执行conda install
它给出了以下错误:
Downloading and Extracting Packages
| 0% ERROR:
Encountered corrupt package tarball at /Users/user/opt/anaconda3/pkgs/conda_package.tar.bz2. Conda has left it in place. Please report this to the maintainers of your package. For the defaults channel, please report to https://github.com/continuumio/anaconda-issues
目前没有回答
相关问题 更多 >
编程相关推荐