【问题标题】:Cannot install accumulation-tree无法安装累积树
【发布时间】:2022-07-20 08:29:27
【问题描述】:

为什么我尝试安装累积树时总是收到此错误?我需要这个来进行选择。类似的软件包也是一种解决方案。

  ERROR: Command errored out with exit status 1:
   command: /Users/elisaderoo/opt/anaconda3/bin/python -u -c 'import sys, setuptools,     tokenize; sys.argv[0] = '"'"'/private/var/folders/yc/59hh1mg16c90lpnfsfvwcnf80000gn/T/pip-install-29thp5kc/accumulation-tree/setup.py'"'"'; __file__='"'"'/private/var/folders/yc/59hh1mg16c90lpnfsfvwcnf80000gn/T/pip-install-29thp5kc/accumulation-tree/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/yc/59hh1mg16c90lpnfsfvwcnf80000gn/T/pip-wheel-4djg7a0d
       cwd: /private/var/folders/yc/59hh1mg16c90lpnfsfvwcnf80000gn/T/pip-install-29thp5kc/accumulation-tree/
  Complete output (19 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-3.8
  creating build/lib.macosx-10.9-x86_64-3.8/accumulation_tree
  copying accumulation_tree/treeslice.py -> build/lib.macosx-10.9-x86_64-3.8/accumulation_tree
  copying accumulation_tree/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/accumulation_tree
  copying accumulation_tree/abctree.py -> build/lib.macosx-10.9-x86_64-3.8/accumulation_tree
  running build_ext
  cythoning accumulation_tree/accumulation_tree.pyx to accumulation_tree/accumulation_tree.c
  /Users/elisaderoo/opt/anaconda3/lib/python3.8/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/yc/59hh1mg16c90lpnfsfvwcnf80000gn/T/pip-install-29thp5kc/accumulation-tree/accumulation_tree/accumulation_tree.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  building 'accumulation_tree.accumulation_tree' extension
  creating build/temp.macosx-10.9-x86_64-3.8
  creating build/temp.macosx-10.9-x86_64-3.8/accumulation_tree
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/elisaderoo/opt/anaconda3/include -arch x86_64 -I/Users/elisaderoo/opt/anaconda3/include -arch x86_64 -I/Users/elisaderoo/opt/anaconda3/include/python3.8 -c accumulation_tree/accumulation_tree.c -o build/temp.macosx-10.9-x86_64-  3.8/accumulation_tree/accumulation_tree.o
  xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),    missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
  error: command 'gcc' failed with exit status 1
     ----------------------------------------
     ERROR: Failed building wheel for accumulation-tree

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: python


【解决方案1】:

此错误可能是由于未安装 Cython。或者,您可以从 GitHub 克隆存储库,从 setup.py 中的 install_requires 列表中删除依赖项 tdigest,然后使用 python setup.py install 从源安装。

【讨论】:

    【解决方案2】:

    尝试运行(在终端窗口中)

    xcode-select –install

    (并点击对话框)

    如果这不起作用,请尝试:

    sudo xcode-select --reset

    几个链接在其他情况下显示了这个问题(例如)

    https://developer.apple.com/forums/thread/673827

    Fatal Error (invalid active developer path ) After Upgrading R / R Studio

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-11
      • 2020-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多