D.R.L 2022-01-05 23:40 采纳率: 100%
浏览 184
已结题

WSL ubuntu + Anaconda3 平台按照官网教程安装QIIME2,报错[Errno 13] Permission denied,如何解决?

按官网教程Natively installing QIIME2,执行到

conda env create -n qiime2-2021.11 --file qiime2-2021.11-py38-linux-conda.yml

报错:


# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/home/dicklees/anaconda3/lib/python3.9/site-packages/conda/exceptions.py", line 1080, in __call__
        return func(*args, **kwargs)
      File "/home/dicklees/anaconda3/lib/python3.9/site-packages/conda_env/cli/main.py", line 80, in do_call
        exit_code = getattr(module, func_name)(args, parser)
      File "/home/dicklees/anaconda3/lib/python3.9/site-packages/conda_env/cli/main_create.py", line 88, in execute
        spec = specs.detect(name=name, filename=get_filename(args.file), directory=os.getcwd())
      File "/home/dicklees/anaconda3/lib/python3.9/site-packages/conda_env/specs/__init__.py", line 43, in detect
        if spec.can_handle():
      File "/home/dicklees/anaconda3/lib/python3.9/site-packages/conda_env/specs/yaml_file.py", line 18, in can_handle
        self._environment = env.from_file(self.filename)
      File "/home/dicklees/anaconda3/lib/python3.9/site-packages/conda_env/env.py", line 160, in from_file
        with open(filename, 'rb') as fp:
    PermissionError: [Errno 13] Permission denied: '/home/dicklees/qiime2-2021.11-py38-linux-conda.yml'

`$ /home/dicklees/anaconda3/bin/conda-env create -n qiime2-2021.11 --file qiime2-2021.11-py38-linux-conda.yml`

  environment variables:
                 CIO_TEST=<not set>
  CONDA_AUTO_UPDATE_CONDA=false
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/home/dicklees/anaconda3/bin/conda
             CONDA_PREFIX=/home/dicklees/anaconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=/home/dicklees/anaconda3/bin/python
               CONDA_ROOT=/home/dicklees/anaconda3
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
                     PATH=/home/dicklees/anaconda3/bin:/home/dicklees/anaconda3/bin:/home/dickle
                          es/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bi
                          n:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsA
                          pps/CanonicalGroupLimited.UbuntuonWindows_2004.2021.825.0_x64__79rhkp1
                          fndgsc:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/
                          Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/WINDOWS/sys
                          tem32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/Syste
                          m32/WindowsPowerShell/v1.0:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/Prog
                          ram Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program
                          Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Windows/system32:/mnt/c
                          /Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsP
                          owerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Users/dickl/AppD
                          ata/Local/Microsoft/WindowsApps:/mnt/e/VScode/Microsoft VS
                          Code/bin:/snap/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : /home/dicklees/anaconda3
            shell level : 1
       user config file : /home/dicklees/.condarc
 populated config files :
          conda version : 4.11.0
    conda-build version : 3.21.7
         python version : 3.9.7.final.0
       virtual packages : __linux=4.4.0=0
                          __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/dicklees/anaconda3  (writable)
      conda av data dir : /home/dicklees/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/dicklees/anaconda3/pkgs
                          /home/dicklees/.conda/pkgs
       envs directories : /home/dicklees/anaconda3/envs
                          /home/dicklees/.conda/envs
               platform : linux-64
             user-agent : conda/4.11.0 requests/2.26.0 CPython/3.9.7 Linux/4.4.0-19041-Microsoft ubuntu/20.04.3 glibc/2.31
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.

请问应该如何解决?谢谢!

  • 写回答

1条回答 默认 最新

  • D.R.L 2022-01-08 18:12
    关注

    看来又只能自问自答了……
    执行conda evn create之前

    chmod 777 qiime2-2021.11-py38-linux-conda.yml
    

    就行了。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 1月16日
  • 已采纳回答 1月8日
  • 创建了问题 1月5日

悬赏问题

  • ¥15 App的会员连续扣费
  • ¥15 不同数据类型的特征融合应该怎么做
  • ¥15 用proteus软件设计一个基于8086微处理器的简易温度计
  • ¥15 用联想小新14Pro
  • ¥15 multisim中关于74ls192n和DSWPK开关仿真图分析(减法计数器)
  • ¥15 基于8255的交通灯设计
  • ¥15 w3wp,exe 中发生未处理的 Microsoft ,NETFramework 异常。
  • ¥20 C51单片机程序及仿真(加减器)
  • ¥15 AQWA | 水动力分析 二阶波浪力
  • ¥15 c语言题目:成绩管理系统