Python 生成课程映像-Conda卸载提供拒绝权限错误

Python 生成课程映像-Conda卸载提供拒绝权限错误,python,dockerfile,conda,jupyterhub,Python,Dockerfile,Conda,Jupyterhub,当我将我的项目从JupyterHub推送到GitHub存储库时,我将研究这个权限被拒绝的错误。我有一个requirements.txt指定了需要安装到环境中的python包。我还有一个工作区\u dockerfile来运行docker命令来构建图像 来自错误日志的错误消息(6行): [91mERROR conda.core.link:_execute(700):卸载程序包时出错'conda-forge/linux-64::conda-4.9.0-py37he5f6b98_1' [0M回滚事务

当我将我的项目从JupyterHub推送到GitHub存储库时,我将研究这个权限被拒绝的错误。我有一个requirements.txt指定了需要安装到环境中的python包。我还有一个工作区\u dockerfile来运行docker命令来构建图像

来自错误日志的错误消息(6行):

  • [91mERROR conda.core.link:_execute(700):卸载程序包时出错
    'conda-forge/linux-64::conda-4.9.0-py37he5f6b98_1'

  • [0M回滚事务:…正在工作…完成

  • [91m

  • [Errno 13]权限被拒绝:
    '/opt/conda/lib/python3.7/site packages/conda-4.9.0-py3.7.egg-info/PKG-info'
    ->
    '/opt/conda/lib/python3.7/site packages/conda-4.9.0-py3.7.egg-info/PKG-info.c~'
    ()

  • [0命令
    '/bin/sh-c conda install--file/tmp/requirements.txt'
    返回一个非零代码:1

  • 未能生成课程摘要文件

不知何故,我可以在以下位置找到
conda-4.9.0-py37he5f6b98_1
文件:。我不确定此信息是否有助于让我知道我应该在requirements.txt和workspace_dockerfile中进行哪些更改

问题:

  • 为什么在卸载conda forge软件包(conda环境中的配置通道)时发生错误

  • 我的案例中的权限错误表明了什么

  • 如何修复生成映像的权限错误

详情:

The following packages will be DOWNGRADED:

  conda                                4.9.0-py37he5f6b98_1 --> 4.7.11-py37_0


Proceed ([y]/n)? 

Downloading and Extracting Packages

gxx_impl_linux-64-7. | 15.0 MB   |            |   0% 
gxx_impl_linux-64-7. | 15.0 MB   | ######7    |  68% 
gxx_impl_linux-64-7. | 15.0 MB   | ########## | 100% 
gxx_impl_linux-64-7. | 15.0 MB   | ########## | 100% 

jupyterlab-2.2.9     | 5.9 MB    |            |   0% 
jupyterlab-2.2.9     | 5.9 MB    | ########1  |  82% 
jupyterlab-2.2.9     | 5.9 MB    | ########## | 100% 

fastprogress-1.0.0   | 15 KB     |            |   0% 
fastprogress-1.0.0   | 15 KB     | ########## | 100% 

cftime-1.2.1         | 279 KB    |            |   0% 
cftime-1.2.1         | 279 KB    | ########## | 100% 

pygpu-0.7.6          | 654 KB    |            |   0% 
pygpu-0.7.6          | 654 KB    | ########## | 100% 
pygpu-0.7.6          | 654 KB    | ########## | 100% 

imagecodecs-lite-201 | 189 KB    |            |   0% 
imagecodecs-lite-201 | 189 KB    | ########## | 100% 

bokeh-2.1.1          | 6.9 MB    |            |   0% 
bokeh-2.1.1          | 6.9 MB    | ########## | 100% 
bokeh-2.1.1          | 6.9 MB    | ########## | 100% 

jupyterhub-1.1.0     | 5 KB      |            |   0% 
jupyterhub-1.1.0     | 5 KB      | ########## | 100% 
jupyterhub-1.1.0     | 5 KB      | ########## | 100% 

matplotlib-3.1.1     | 6 KB      |            |   0% 
matplotlib-3.1.1     | 6 KB      | ########## | 100% 

urllib3-1.25.11      | 93 KB     |            |   0% 
urllib3-1.25.11      | 93 KB     | ########## | 100% 

jupyterhub-base-1.1. | 1.8 MB    |            |   0% 
jupyterhub-base-1.1. | 1.8 MB    |            |   1% 
jupyterhub-base-1.1. | 1.8 MB    | ########## | 100% 
jupyterhub-base-1.1. | 1.8 MB    | ########## | 100% 

gcc_linux-64-7.3.0   | 22 KB     |            |   0% 
gcc_linux-64-7.3.0   | 22 KB     | ########## | 100% 

scikit-image-0.17.2  | 10.8 MB   |            |   0% 
scikit-image-0.17.2  | 10.8 MB   | ########## | 100% 
scikit-image-0.17.2  | 10.8 MB   | ########## | 100% 

xarray-0.16.1        | 529 KB    |            |   0% 
xarray-0.16.1        | 529 KB    | ########## | 100% 
xarray-0.16.1        | 529 KB    | ########## | 100% 

hdf4-4.2.13          | 964 KB    |            |   0% 
hdf4-4.2.13          | 964 KB    | ########## | 100% 
hdf4-4.2.13          | 964 KB    | ########## | 100% 

ipython-7.19.0       | 1.1 MB    |            |   0% 
ipython-7.19.0       | 1.1 MB    | ########## | 100% 
ipython-7.19.0       | 1.1 MB    | ########## | 100% 

arviz-0.10.0         | 1.3 MB    |            |   0% 
arviz-0.10.0         | 1.3 MB    | ########## | 100% 
arviz-0.10.0         | 1.3 MB    | ########## | 100% 

ld_impl_linux-64-2.3 | 616 KB    |            |   0% 
ld_impl_linux-64-2.3 | 616 KB    | ########## | 100% 
ld_impl_linux-64-2.3 | 616 KB    | ########## | 100% 

tifffile-2020.6.3    | 109 KB    |            |   0% 
tifffile-2020.6.3    | 109 KB    | ########## | 100% 

python-json-logger-2 | 10 KB     |            |   0% 
python-json-logger-2 | 10 KB     | ########## | 100% 

statsmodels-0.12.1   | 11.0 MB   |            |   0% 
statsmodels-0.12.1   | 11.0 MB   | ####9      |  49% 
statsmodels-0.12.1   | 11.0 MB   | ########## | 100% 
statsmodels-0.12.1   | 11.0 MB   | ########## | 100% 

pymc3-3.9.3          | 1.3 MB    |            |   0% 
pymc3-3.9.3          | 1.3 MB    | ########## | 100% 
pymc3-3.9.3          | 1.3 MB    | ########## | 100% 

libgpuarray-0.7.6    | 263 KB    |            |   0% 
libgpuarray-0.7.6    | 263 KB    | ########## | 100% 

curl-7.65.3          | 132 KB    |            |   0% 
curl-7.65.3          | 132 KB    | ########## | 100% 

netcdf4-1.5.3        | 546 KB    |            |   0% 
netcdf4-1.5.3        | 546 KB    | ########## | 100% 

binutils_impl_linux- | 9.2 MB    |            |   0% 
binutils_impl_linux- | 9.2 MB    | #######5   |  75% 
binutils_impl_linux- | 9.2 MB    | ########## | 100% 
binutils_impl_linux- | 9.2 MB    | ########## | 100% 

pandas-1.1.4         | 10.5 MB   |            |   0% 
pandas-1.1.4         | 10.5 MB   | ########## | 100% 
pandas-1.1.4         | 10.5 MB   | ########## | 100% 

prompt-toolkit-3.0.5 | 232 KB    |            |   0% 
prompt-toolkit-3.0.5 | 232 KB    | ########## | 100% 

gxx_linux-64-7.3.0   | 21 KB     |            |   0% 
gxx_linux-64-7.3.0   | 21 KB     | ########## | 100% 

nose-1.3.7           | 118 KB    |            |   0% 
nose-1.3.7           | 118 KB    | ########## | 100% 

binutils_linux-64-2. | 21 KB     |            |   0% 
binutils_linux-64-2. | 21 KB     | ########## | 100% 

jupyter_client-5.3.4 | 131 KB    |            |   0% 
jupyter_client-5.3.4 | 131 KB    | ########## | 100% 

scikit-learn-0.23.2  | 6.9 MB    |            |   0% 
scikit-learn-0.23.2  | 6.9 MB    | ########## | 100% 
scikit-learn-0.23.2  | 6.9 MB    | ########## | 100% 

seaborn-base-0.11.0  | 216 KB    |            |   0% 
seaborn-base-0.11.0  | 216 KB    | ########## | 100% 

ruamel.yaml.clib-0.2 | 156 KB    |            |   0% 
ruamel.yaml.clib-0.2 | 156 KB    | ########## | 100% 

seaborn-0.11.0       | 4 KB      |            |   0% 
seaborn-0.11.0       | 4 KB      | ########## | 100% 

scipy-1.5.2          | 18.5 MB   |            |   0% 
scipy-1.5.2          | 18.5 MB   | ####9      |  50% 
scipy-1.5.2          | 18.5 MB   | ########## | 100% 
scipy-1.5.2          | 18.5 MB   | ########## | 100% 

ipykernel-5.3.4      | 166 KB    |            |   0% 
ipykernel-5.3.4      | 166 KB    | ########## | 100% 

jupyter_console-6.2. | 22 KB     |            |   0% 
jupyter_console-6.2. | 22 KB     | ########## | 100% 

jupyterlab_server-1. | 25 KB     |            |   0% 
jupyterlab_server-1. | 25 KB     | ########## | 100% 

jupyter_telemetry-0. | 8 KB      |            |   0% 
jupyter_telemetry-0. | 8 KB      | ########## | 100% 

libnetcdf-4.7.4      | 1.3 MB    |            |   0% 
libnetcdf-4.7.4      | 1.3 MB    | ########## | 100% 
libnetcdf-4.7.4      | 1.3 MB    | ########## | 100% 

brotlipy-0.7.0       | 346 KB    |            |   0% 
brotlipy-0.7.0       | 346 KB    | ########## | 100% 

theano-1.0.5         | 3.7 MB    |            |   0% 
theano-1.0.5         | 3.7 MB    | ########## | 100% 
theano-1.0.5         | 3.7 MB    | ########## | 100% 

threadpoolctl-2.1.0  | 15 KB     |            |   0% 
threadpoolctl-2.1.0  | 15 KB     | ########## | 100% 

numpy-1.19.2         | 5.2 MB    |            |   0% 
numpy-1.19.2         | 5.2 MB    | #######5   |  76% 
numpy-1.19.2         | 5.2 MB    | ########## | 100% 
numpy-1.19.2         | 5.2 MB    | ########## | 100% 

gcc_impl_linux-64-7. | 41.9 MB   |            |   0% 
gcc_impl_linux-64-7. | 41.9 MB   | ###        |  31% 
gcc_impl_linux-64-7. | 41.9 MB   | #####9     |  59% 
gcc_impl_linux-64-7. | 41.9 MB   | ########## | 100% 
gcc_impl_linux-64-7. | 41.9 MB   | ########## | 100% 

ruamel.yaml-0.16.12  | 166 KB    |            |   0% 
ruamel.yaml-0.16.12  | 166 KB    | ########## | 100% 
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
[91mERROR conda.core.link:_execute(700): An error occurred while uninstalling package 'conda-forge/linux-64::conda-4.9.0-py37he5f6b98_1'.
[0mRolling back transaction: ...working... done
[91m
[Errno 13] Permission denied: '/opt/conda/lib/python3.7/site-packages/conda-4.9.0-py3.7.egg-info/PKG-INFO' -> '/opt/conda/lib/python3.7/site-packages/conda-4.9.0-py3.7.egg-info/PKG-INFO.c~'
()

[0mThe command '/bin/sh -c conda install --file /tmp/requirements.txt' returned a non-zero code: 1
Failed to build course dockerfile.
提前非常感谢!希望很快见到你