微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

试图从 .yaml 文件创建 conda env ---“CondaEnvException: Pip failed”

如何解决试图从 .yaml 文件创建 conda env ---“CondaEnvException: Pip failed”

我正在尝试通过我的 mac osx 上的终端安装 DeepLabCut。请参阅附加的代码——直到最后创建一个环境(DLC-cpu)似乎没问题,在那里我得到一个错误代码(见代码底部)。我还看到 Py 被弃用的很多错误,numba 的问题......这一切意味着什么?我已经卸载了 anaconda 并重置了我的 python 和 conda 基础,并尽可能多地卸载了我的 pip 程序,因为我的印象是我今天所有的安装尝试都有一些随机的零碎。但我不确定....

编辑:使用以下说明:https://guillermohidalgogadea.com/openlabnotebook/installing-deeplabcut/

这里有一些弹出的错误输出太长,无法在此处发布):

Building wheels for collected packages: numba
  Building wheel for numba (setup.py): started
  Building wheel for numba (setup.py): finished with status 'error'
  Running setup.py clean for numba
Failed to build numba
 Warning: Can't read registry to find the necessary compiler setting
    Make sure that Python modules winreg,win32api or win32con are installed.
   clang: error: unsupported option '-fopenmp'
    clang: error: unsupported option '-fopenmp'
    error: Command "gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Opt/anaconda3/envs/DLC-cpu/include -arch x86_64 -I/Opt/anaconda3/envs/DLC-cpu/include -arch x86_64 -I/Opt/anaconda3/envs/DLC-cpu/include/python3.7m -c numba/np/ufunc/omppool.cpp -o build/temp.macosx-10.9-x86_64-3.7/numba/np/ufunc/omppool.o -fopenmp -std=c++11" Failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/anaconda3/envs/DLC-cpu/bin/python -u -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/private/var/folders/z0/w5cbbvnd3q30wthgx_8yxq6w0000gn/T/pip-install-hkmlenwy/numba_da37a4d1706f4ef4927670e1e80d57df/setup.py'"'"'; __file__='"'"'/private/var/folders/z0/w5cbbvnd3q30wthgx_8yxq6w0000gn/T/pip-install-hkmlenwy/numba_da37a4d1706f4ef4927670e1e80d57df/setup.py'"'"';f=getattr(tokenize,'"'"'open'"'"',open)(__file__);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' install --record /private/var/folders/z0/w5cbbvnd3q30wthgx_8yxq6w0000gn/T/pip-record-13ekd918/install-record.txt --single-version-externally-managed --compile --install-headers /opt/anaconda3/envs/DLC-cpu/include/python3.7m/numba Check the logs for full command output.

Failed

CondaEnvException: Pip Failed
   /opt/anaconda3/envs/DLC-cpu/include/python3.7m/abstract.h:503:40: note: 'PyObject_AsWriteBuffer' has been explicitly marked deprecated here
                                           Py_DEPRECATED(3.0);
                                           ^
    /opt/anaconda3/envs/DLC-cpu/include/python3.7m/pyport.h:493:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    numba/mviewbuf.c:82:26: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
                    if(-1 == PyObject_AsReadBuffer(obj,&roptr,&buflen))
                             ^
    /opt/anaconda3/envs/DLC-cpu/include/python3.7m/abstract.h:492:39: note: 'PyObject_AsReadBuffer' has been explicitly marked deprecated here
                                          Py_DEPRECATED(3.0);
                                          ^
    /opt/anaconda3/envs/DLC-cpu/include/python3.7m/pyport.h:493:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    numba/mviewbuf.c:174:19: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
            if (-1 == PyObject_AsReadBuffer(obj,&ptr,&buflen)) return NULL;
                      ^
    /opt/anaconda3/envs/DLC-cpu/include/python3.7m/abstract.h:492:39: note: 'PyObject_AsReadBuffer' has been explicitly marked deprecated here
                                          Py_DEPRECATED(3.0);
                                          ^
    /opt/anaconda3/envs/DLC-cpu/include/python3.7m/pyport.h:493:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                         ^
    4 warnings generated.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。