繁体   English   中英

无法在 macOS“Big Sur”上通过 pip 或 conda 安装镶木地板

[英]Can't install parquet via pip nor conda on macOS “Big Sur”

我正在尝试通过 pip 或 conda 安装镶木地板。

我用于 pip 的命令:(用于我的主要 python 安装)

pip install parquet

根据评论,尝试:

pip install parquet --no-cache-dir

给出错误:

    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c thriftpy2/transport/cybase.c -o build/temp.macosx-11-x86_64-3.9/thriftpy2/transport/cybase.o
clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
error: command '/usr/bin/clang' failed with exit code 1

我曾经通过 conda 尝试过的命令:(对于我的 miniconda3 环境)

zsh
source activate opencv
conda install parquet

注意:虽然我最近升级了我的 Big Sur 操作系统,但我相信我仍然正确安装了 Apple Xcode 命令行工具:

xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

Pip 错误:

Collecting parquet
  Using cached parquet-1.3.1-py3-none-any.whl (24 kB)
Collecting thriftpy2
  Using cached thriftpy2-0.4.13.tar.gz (365 kB)
Requirement already satisfied: ply<4.0,>=3.4 in /usr/local/lib/python3.9/site-packages (from thriftpy2->parquet) (3.11)
Requirement already satisfied: six~=1.15 in /usr/local/Cellar/protobuf/3.14.0/libexec/lib/python3.9/site-packages (from thriftpy2->parquet) (1.15.0)
Building wheels for collected packages: thriftpy2
  Building wheel for thriftpy2 (setup.py): started
  Building wheel for thriftpy2 (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-install-24lg9_3r/thriftpy2_b14f59c024c149e2ad765d39429fbf7c/setup.py'"'"'; __file__='"'"'/private/var/folders/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-install-24lg9_3r/thriftpy2_b14f59c024c149e2ad765d39429fbf7c/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/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-wheel-zoxlrw_g
       cwd: /private/var/folders/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-install-24lg9_3r/thriftpy2_b14f59c024c149e2ad765d39429fbf7c/
  Complete output (94 lines):
  running bdist_wheel
  The [wheel] section is deprecated. Use [bdist_wheel] instead.
  running build
  running build_py
  creating build
  creating build/lib.macosx-11-x86_64-3.9
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2
  copying thriftpy2/server.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
  copying thriftpy2/hook.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
  copying thriftpy2/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
  copying thriftpy2/thrift.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
  copying thriftpy2/rpc.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
  copying thriftpy2/utils.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
  copying thriftpy2/tornado.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
  copying thriftpy2/http.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
  copying thriftpy2/_compat.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
  copying thriftpy2/transport/_ssl.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
  copying thriftpy2/transport/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
  copying thriftpy2/transport/sslsocket.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
  copying thriftpy2/transport/socket.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
  copying thriftpy2/transport/base.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
  copying thriftpy2/protocol/binary.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
  copying thriftpy2/protocol/apache_json.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
  copying thriftpy2/protocol/compact.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
  copying thriftpy2/protocol/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
  copying thriftpy2/protocol/exc.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
  copying thriftpy2/protocol/multiplex.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
  copying thriftpy2/protocol/json.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
  copying thriftpy2/protocol/base.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
  copying thriftpy2/parser/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
  copying thriftpy2/parser/parser.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
  copying thriftpy2/parser/exc.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
  copying thriftpy2/parser/lexer.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib
  copying thriftpy2/contrib/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/memory
  copying thriftpy2/transport/memory/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/memory
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/buffered
  copying thriftpy2/transport/buffered/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/buffered
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/framed
  copying thriftpy2/transport/framed/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/framed
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
  copying thriftpy2/contrib/aio/server.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
  copying thriftpy2/contrib/aio/client.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
  copying thriftpy2/contrib/aio/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
  copying thriftpy2/contrib/aio/processor.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
  copying thriftpy2/contrib/aio/rpc.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
  copying thriftpy2/contrib/aio/socket.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/tracking
  copying thriftpy2/contrib/tracking/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/tracking
  copying thriftpy2/contrib/tracking/tracker.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/tracking
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
  copying thriftpy2/contrib/aio/transport/buffered.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
  copying thriftpy2/contrib/aio/transport/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
  copying thriftpy2/contrib/aio/transport/base.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
  copying thriftpy2/contrib/aio/transport/framed.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
  copying thriftpy2/contrib/aio/protocol/binary.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
  copying thriftpy2/contrib/aio/protocol/compact.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
  copying thriftpy2/contrib/aio/protocol/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
  copying thriftpy2/contrib/aio/protocol/base.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
  running egg_info
  writing thriftpy2.egg-info/PKG-INFO
  writing dependency_links to thriftpy2.egg-info/dependency_links.txt
  writing requirements to thriftpy2.egg-info/requires.txt
  writing top-level names to thriftpy2.egg-info/top_level.txt
  reading manifest file 'thriftpy2.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'thriftpy2.egg-info/SOURCES.txt'
  copying thriftpy2/transport/cybase.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
  copying thriftpy2/transport/cybase.pxd -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
  copying thriftpy2/transport/cybase.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
  creating build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol/cybin
  copying thriftpy2/protocol/cybin/cybin.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol/cybin
  copying thriftpy2/protocol/cybin/cybin.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol/cybin
  copying thriftpy2/protocol/cybin/endian_port.h -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol/cybin
  copying thriftpy2/transport/memory/cymemory.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/memory
  copying thriftpy2/transport/memory/cymemory.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/memory
  copying thriftpy2/transport/buffered/cybuffered.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/buffered
  copying thriftpy2/transport/buffered/cybuffered.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/buffered
  copying thriftpy2/transport/framed/cyframed.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/framed
  copying thriftpy2/transport/framed/cyframed.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/framed
  copying thriftpy2/contrib/tracking/tracking.thrift -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/tracking
  running build_ext
  building 'thriftpy2.transport.cybase' extension
  creating build/temp.macosx-11-x86_64-3.9
  creating build/temp.macosx-11-x86_64-3.9/thriftpy2
  creating build/temp.macosx-11-x86_64-3.9/thriftpy2/transport
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c thriftpy2/transport/cybase.c -o build/temp.macosx-11-x86_64-3.9/thriftpy2/transport/cybase.o
  clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for thriftpy2
  Running setup.py clean for thriftpy2
Failed to build thriftpy2
Installing collected packages: thriftpy2, parquet
    Running setup.py install for thriftpy2: started
    Running setup.py install for thriftpy2: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-install-24lg9_3r/thriftpy2_b14f59c024c149e2ad765d39429fbf7c/setup.py'"'"'; __file__='"'"'/private/var/folders/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-install-24lg9_3r/thriftpy2_b14f59c024c149e2ad765d39429fbf7c/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/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-record-m7lxkivf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/thriftpy2
         cwd: /private/var/folders/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-install-24lg9_3r/thriftpy2_b14f59c024c149e2ad765d39429fbf7c/
    Complete output (93 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-11-x86_64-3.9
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2
    copying thriftpy2/server.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
    copying thriftpy2/hook.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
    copying thriftpy2/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
    copying thriftpy2/thrift.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
    copying thriftpy2/rpc.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
    copying thriftpy2/utils.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
    copying thriftpy2/tornado.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
    copying thriftpy2/http.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
    copying thriftpy2/_compat.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
    copying thriftpy2/transport/_ssl.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
    copying thriftpy2/transport/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
    copying thriftpy2/transport/sslsocket.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
    copying thriftpy2/transport/socket.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
    copying thriftpy2/transport/base.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
    copying thriftpy2/protocol/binary.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
    copying thriftpy2/protocol/apache_json.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
    copying thriftpy2/protocol/compact.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
    copying thriftpy2/protocol/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
    copying thriftpy2/protocol/exc.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
    copying thriftpy2/protocol/multiplex.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
    copying thriftpy2/protocol/json.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
    copying thriftpy2/protocol/base.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
    copying thriftpy2/parser/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
    copying thriftpy2/parser/parser.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
    copying thriftpy2/parser/exc.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
    copying thriftpy2/parser/lexer.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/parser
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib
    copying thriftpy2/contrib/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/memory
    copying thriftpy2/transport/memory/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/memory
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/buffered
    copying thriftpy2/transport/buffered/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/buffered
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/framed
    copying thriftpy2/transport/framed/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/framed
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
    copying thriftpy2/contrib/aio/server.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
    copying thriftpy2/contrib/aio/client.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
    copying thriftpy2/contrib/aio/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
    copying thriftpy2/contrib/aio/processor.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
    copying thriftpy2/contrib/aio/rpc.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
    copying thriftpy2/contrib/aio/socket.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/tracking
    copying thriftpy2/contrib/tracking/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/tracking
    copying thriftpy2/contrib/tracking/tracker.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/tracking
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
    copying thriftpy2/contrib/aio/transport/buffered.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
    copying thriftpy2/contrib/aio/transport/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
    copying thriftpy2/contrib/aio/transport/base.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
    copying thriftpy2/contrib/aio/transport/framed.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/transport
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
    copying thriftpy2/contrib/aio/protocol/binary.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
    copying thriftpy2/contrib/aio/protocol/compact.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
    copying thriftpy2/contrib/aio/protocol/__init__.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
    copying thriftpy2/contrib/aio/protocol/base.py -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/aio/protocol
    running egg_info
    writing thriftpy2.egg-info/PKG-INFO
    writing dependency_links to thriftpy2.egg-info/dependency_links.txt
    writing requirements to thriftpy2.egg-info/requires.txt
    writing top-level names to thriftpy2.egg-info/top_level.txt
    reading manifest file 'thriftpy2.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'thriftpy2.egg-info/SOURCES.txt'
    copying thriftpy2/transport/cybase.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
    copying thriftpy2/transport/cybase.pxd -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
    copying thriftpy2/transport/cybase.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport
    creating build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol/cybin
    copying thriftpy2/protocol/cybin/cybin.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol/cybin
    copying thriftpy2/protocol/cybin/cybin.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol/cybin
    copying thriftpy2/protocol/cybin/endian_port.h -> build/lib.macosx-11-x86_64-3.9/thriftpy2/protocol/cybin
    copying thriftpy2/transport/memory/cymemory.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/memory
    copying thriftpy2/transport/memory/cymemory.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/memory
    copying thriftpy2/transport/buffered/cybuffered.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/buffered
    copying thriftpy2/transport/buffered/cybuffered.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/buffered
    copying thriftpy2/transport/framed/cyframed.c -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/framed
    copying thriftpy2/transport/framed/cyframed.pyx -> build/lib.macosx-11-x86_64-3.9/thriftpy2/transport/framed
    copying thriftpy2/contrib/tracking/tracking.thrift -> build/lib.macosx-11-x86_64-3.9/thriftpy2/contrib/tracking
    running build_ext
    building 'thriftpy2.transport.cybase' extension
    creating build/temp.macosx-11-x86_64-3.9
    creating build/temp.macosx-11-x86_64-3.9/thriftpy2
    creating build/temp.macosx-11-x86_64-3.9/thriftpy2/transport
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c thriftpy2/transport/cybase.c -o build/temp.macosx-11-x86_64-3.9/thriftpy2/transport/cybase.o
    clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-install-24lg9_3r/thriftpy2_b14f59c024c149e2ad765d39429fbf7c/setup.py'"'"'; __file__='"'"'/private/var/folders/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-install-24lg9_3r/thriftpy2_b14f59c024c149e2ad765d39429fbf7c/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/y3/rxnq666x3cq3c76ss368pdpc0000gp/T/pip-record-m7lxkivf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/thriftpy2 Check the logs for full command output.

康达错误:

Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - parquet

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

如果您想以其他方式安装“镶木地板”,则需要 Pycharm,它应该很容易安装。

打开 Pycharm 并按照以下步骤操作:

  1. Go 到偏好
  2. 单击项目部分下的 Python 解释器
  3. 点击图片中的“+”

在此处输入图像描述

  1. 搜索“镶木地板”

在此处输入图像描述

  1. 点击安装。

在此处输入图像描述

  1. 安装镶木地板后,它应该在step 2中可见

如果有任何问题,请告诉我。

从错误中可以清楚地看出pip正在尝试在您的系统上编译parquet 此错误是因为MACOSX_DEPLOYMENT_TARGET=11.0未包含在 MacOS 11 的稳定 XCode 命令行工具中。您需要安装XCode 命令行工具 12.3 Beta 之后只需运行pip install

xcode 看起来有问题。 尝试这个:

$ sudo rm -rf /Library/Developer/CommandLineTools

确保 xcode 已从 appstore 安装并运行:

$ sudo xcode-select --install

你可以试试

python -m pip install parquet

(您可能想尝试使用python2python3 ,具体取决于您使用的 python 版本,如果您不知道可以使用python --version检查它)。

此外,镶木地板已在 python 2.7、3.6 和 3.7 上进行了测试,因此,如果您没有其中一个版本可能会出现问题

您也可以尝试构建一个虚拟环境并尝试在其中安装 parquet!

似乎 parquet 无法使用 pip 在系统上自行安装,并且某些版本的 conda 无法使用某些库正确运行

解决方案:

  1. 重新安装 pip:也许你的 pip 坏了

  2. 使用 pycharm 安装您的库(包括镶木地板)

  3. 从 git 克隆并尽可能手动安装

也许这不是您想要的,或者您已经找到它,但是这个答案python parquet install 在带有 snappy 和 thiftpy 的 macos 上失败可能有助于寻找另一种出路。

镶木地板 package 未维护且已过时。 要在 Python 中读取和写入 Parquet 文件,您应该安装pyarrow并使用pyarrow.parquet模块。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM