【问题标题】:I encounter this error when I try 'pip install StyleFrame', any idea what this error is about?当我尝试“pip install StyleFrame”时遇到这个错误,知道这个错误是关于什么的吗?
【发布时间】:2019-06-11 04:21:21
【问题描述】:

我在尝试“pip install StyleFrame”时遇到了这个错误,知道这个错误是关于什么的吗?

Command "/Users/pengdanni/Desktop/invoice/venv/bin/python 
-m pip install --ignore-installed --no-user --prefix /private/var/folders/g9/1p5yfql51vs118b1r6899rp80000gn/T/pip-build-env-y8qav8ta
--no-warn-script-location --no-binary :none: 
--only-binary :none: -i https://pypi.org/simple -- wheel setuptools Cython "

 numpy==1.9.3; python_version=='3.5'" "numpy==1.12.1; 
 python_version=='3.6'" "numpy==1.13.1; python_version>='3.7'"" 

 failed with error code 1 in None

【问题讨论】:

  • 你安装的是什么版本的Python?

标签: python styleframe


【解决方案1】:

简答:

  1. 可能需要安装 xcrun:xcode-select --install
  2. 如果您使用的是 python 3.7,则 styleframe 目前不兼容。我为他们做了一个github issue。在解决这个问题之前,如果您可以降级到 python 3.6,它应该可以工作。

我的故障排除步骤的更长答案:

某些 python 包需要 xcrun 才能安装在某些操作系统上(例如 Mac 上的 OSX)。这是我在复制您的问题时得到的(相当冗长的)错误输出的一部分:

xcrun:错误:无效的活动开发者路径 (/Library/Developer/CommandLineTools),缺少 xcrun:/Library/Developer/CommandLineTools/usr/bin/xcrun

我运行这个来安装 xcrun:

xcode-select --install

这给了我一个新的更长的错误,包括:

_configtest.c:1:10:致命错误:找不到“endian.h”文件

这让我想到了这个: endian.h not found on mac osx

但它仍然失败并出现同样的错误。

github issue 中的更多详细信息:https://github.com/DeepSpace2/StyleFrame/issues/52

【讨论】:

  • 问题已关闭/解决,但我仍然收到错误
猜你喜欢
  • 2011-07-23
  • 2023-04-02
  • 2022-01-04
  • 2015-09-27
  • 1970-01-01
  • 2011-08-30
  • 2019-10-29
  • 1970-01-01
相关资源
最近更新 更多