首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法安装累积树

无法安装累积树
EN

Stack Overflow用户
提问于 2022-03-01 13:37:43
回答 2查看 233关注 0票数 0

当我试图安装累积树时,为什么总是会出现这个错误?我需要这个做眼镜片。类似的一揽子方案也是一种解决办法。

代码语言:javascript
运行
复制
  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
EN

回答 2

Stack Overflow用户

发布于 2022-04-02 00:00:58

此错误可能是由于没有安装Cython造成的。或者,您可以从GitHub克隆存储库,从setup.py中的install_requires列表中删除依赖项摘要,并使用pythonsetup.py安装从源代码中安装。

票数 0
EN

Stack Overflow用户

发布于 2022-07-20 00:29:27

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

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71309333

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档