诗无法安装九头蛇

mCs*_*mCs 1 python hydra python-poetry

Poetry 无法安装 Hydra,出现以下错误。如何用诗歌安装Hydra:

\n
$ poetry add hydra\n                                                                                                          \nUsing version ^2.5 for hydra\n\nUpdating dependencies\nResolving dependencies... (6.3s)\n\nWriting lock file\n\nPackage operations: 1 install, 0 updates, 0 removals\n\n  \xe2\x80\xa2 Installing hydra (2.5): Failed\n\n  CalledProcessError\n\n  Command '['/Users/mc/Library/Caches/pypoetry/virtualenvs/showcase-project-lis5iaDt-py3.9/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/Users/mc/Library/Caches/pypoetry/virtualenvs/showcase-project-lis5iaDt-py3.9', '--no-deps', '/Users/mc/Library/Caches/pypoetry/artifacts/d8/9a/72/7404c4669ad6d023f10626f1f4ad5a0f0bb0fe11b6e4ec7fe398dff895/Hydra-2.5.tar.gz']' returned non-zero exit status 1.\n\n  at /opt/homebrew/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py:528 in run\n       524\xe2\x94\x82             # We don't call process.wait() as .__exit__ does that for us.\n       525\xe2\x94\x82             raise\n       526\xe2\x94\x82         retcode = process.poll()\n       527\xe2\x94\x82         if check and retcode:\n    \xe2\x86\x92  528\xe2\x94\x82             raise CalledProcessError(retcode, process.args,\n       529\xe2\x94\x82                                      output=stdout, stderr=stderr)\n       530\xe2\x94\x82     return CompletedProcess(process.args, retcode, stdout, stderr)\n       531\xe2\x94\x82 \n       532\xe2\x94\x82 \n\nThe following error occurred when trying to handle this error:\n\n\n  EnvCommandError\n\n  Command ['/Users/mc/Library/Caches/pypoetry/virtualenvs/showcase-project-lis5iaDt-py3.9/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/Users/mc/Library/Caches/pypoetry/virtualenvs/showcase-project-lis5iaDt-py3.9', '--no-deps', '/Users/mc/Library/Caches/pypoetry/artifacts/d8/9a/72/7404c4669ad6d023f10626f1f4ad5a0f0bb0fe11b6e4ec7fe398dff895/Hydra-2.5.tar.gz'] errored with the following return code 1, and output: \n  Processing /Users/mc/Library/Caches/pypoetry/artifacts/d8/9a/72/7404c4669ad6d023f10626f1f4ad5a0f0bb0fe11b6e4ec7fe398dff895/Hydra-2.5.tar.gz\n    Installing build dependencies: started\n    Installing build dependencies: finished with status 'done'\n    Getting requirements to build wheel: started\n    Getting requirements to build wheel: finished with status 'done'\n    Preparing metadata (pyproject.toml): started\n    Preparing metadata (pyproject.toml): finished with status 'done'\n  Building wheels for collected packages: Hydra\n    Building wheel for Hydra (pyproject.toml): started\n    Building wheel for Hydra (pyproject.toml): finished with status 'error'\n    error: subprocess-exited-with-error\n    \n    \xc3\x97 Building wheel for Hydra (pyproject.toml) did not run successfully.\n    \xe2\x94\x82 exit code: 1\n    \xe2\x95\xb0\xe2\x94\x80> [221 lines of output]\n        running bdist_wheel\n        running build\n        running build_py\n        creating build\n        creating build/lib.macosx-12-arm64-cpython-39\n        copying src/hydra.py -> build/lib.macosx-12-arm64-cpython-39\n        running build_ext\n        building '_hydra' extension\n        creating build/temp.macosx-12-arm64-cpython-39\n        creating build/temp.macosx-12-arm64-cpython-39/src\n        clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/private/var/folders/1y/w1f378ln3js1n9dhwbwshkm40000gn/T/pip-req-build-owvns8k8/src -I/Users/mc/Library/Caches/pypoetry/virtualenvs/showcase-project-lis5iaDt-py3.9/include -I/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/MurmurHash3.c -o build/temp.macosx-12-arm64-cpython-39/src/MurmurHash3.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE\n        clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/private/var/folders/1y/w1f378ln3js1n9dhwbwshkm40000gn/T/pip-req-build-owvns8k8/src -I/Users/mc/Library/Caches/pypoetry/virtualenvs/showcase-project-lis5iaDt-py3.9/include -I/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/_hydra.c -o build/temp.macosx-12-arm64-cpython-39/src/_hydra.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE\n        src/_hydra.c:3377:36: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'Py_ssize_t' (aka 'long') [-Wsign-compare]\n          __pyx_t_3 = ((__pyx_v_self->_idx < __pyx_t_2) != 0);\n                        ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~\n        src/_hydra.c:7137:44: warning: taking the absolute value of unsigned type 'unsigned long' has no effect [-Wabsolute-value]\n            (__pyx_v__bucket_indexes[__pyx_v_i]) = llabs((__pyx_t_7 % __pyx_v_max));\n                                                   ^\n        src/_hydra.c:7137:44: note: remove the call to 'llabs' since unsigned values cannot be negative\n            (__pyx_v__bucket_indexes[__pyx_v_i]) = llabs((__pyx_t_7 % __pyx_v_max));\n                                                   ^~~~~\n        src/_hydra.c:8530:35: error: no member named 'tp_print' in 'struct _typeobject'\n          __pyx_type_6_hydra_MMapBitField.tp_print = 0;\n          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^\n        src/_hydra.c:8535:31: error: no member named 'tp_print' in 'struct _typeobject'\n          __pyx_type_6_hydra_MMapIter.tp_print = 0;\n          ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^\n        src/_hydra.c:8539:40: error: no member named 'tp_print' in 'struct _typeobject'\n          __pyx_type_6_hydra_BloomCalculations.tp_print = 0;\n          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^\n        src/_hydra.c:8551:34: error: no member named 'tp_print' in 'struct _typeobject'\n          __pyx_type_6_hydra_BloomFilter.tp_print = 0;\n          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^\n        src/_hydra.c:9924:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]\n                            (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :\n                             ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'\n              PyUnicode_WSTR_LENGTH(op) :                    \\\n              ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'\n        #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)\n                                          ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3)\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9924:22: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]\n                            (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :\n                             ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'\n              ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\\\n                     ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9924:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]\n                            (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :\n                             ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'\n               PyUnicode_WSTR_LENGTH(op)))\n               ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'\n        #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)\n                                          ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3)\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9924:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]\n                            (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :\n                                                           ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'\n              PyUnicode_WSTR_LENGTH(op) :                    \\\n              ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'\n        #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)\n                                          ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3)\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9924:52: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]\n                            (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :\n                                                           ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'\n              ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\\\n                     ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9924:52: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]\n                            (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :\n                                                           ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'\n               PyUnicode_WSTR_LENGTH(op)))\n               ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'\n        #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)\n                                          ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3)\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9940:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]\n                                (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :\n                                 ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'\n              PyUnicode_WSTR_LENGTH(op) :                    \\\n              ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'\n        #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)\n                                          ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3)\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9940:26: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]\n                                (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :\n                                 ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'\n              ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\\\n                     ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9940:26: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]\n                                (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :\n                                 ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:264:8: note: expanded from macro 'PyUnicode_GET_SIZE'\n               PyUnicode_WSTR_LENGTH(op)))\n               ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'\n        #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)\n                                          ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3)\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9940:59: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]\n                                (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :\n                                                                  ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:261:7: note: expanded from macro 'PyUnicode_GET_SIZE'\n              PyUnicode_WSTR_LENGTH(op) :                    \\\n              ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:451:35: note: expanded from macro 'PyUnicode_WSTR_LENGTH'\n        #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)\n                                          ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:445:1: note: '_PyUnicode_get_wstr_length' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3)\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                                                             ^\n        src/_hydra.c:9940:59: warning: 'PyUnicode_AsUnicode' is deprecated [-Wdeprecated-declarations]\n                                (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :\n                                                                  ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:262:14: note: expanded from macro 'PyUnicode_GET_SIZE'\n              ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\\\n                     ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/unicodeobject.h:580:1: note: 'PyUnicode_AsUnicode' has been explicitly marked deprecated here\n        Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(\n        ^\n        /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'\n        #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))\n                     

Jas*_*sha 7

您是否正在尝试安装 Hydra 配置框架(https://github.com/facebookresearch/Hydra)?

pypi.org 上的包hydra与 Hydra 配置框架无关。您想要的包裹是hydra-core;你需要做的poetry add hydra-core,不是poetry add hydra