python 无法在macOS“Big Sur”上通过pip或conda安装 parquet

pgccezyw  于 2023-01-04  发布在  Python
关注(0)|答案(6)|浏览(220)

我正在尝试安装 parquet 无论是通过PIP或康达。
用于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

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

xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
    • 点错误:**
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.
    • Conda错误:**
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.
c0vxltue

c0vxltue1#

从错误中可以清楚地看出pip试图在您的系统上编译parquet。此错误是因为MACOSX_DEPLOYMENT_TARGET=11.0未包含在稳定的XCode命令行工具中。您需要安装XCode Command Line Tools 12.3 Beta。然后再次运行pip install

des4xlb0

des4xlb02#

如果你想安装“实木复合地板”在另一种方式那么你会需要Pycharm,它应该很容易安装.
打开Pycharm并按照以下步骤操作:
1.转到首选项
1.单击"项目"部分下的Python解释器
1.点击"+",如图所示

1.搜索" parquet "

1.单击安装。

1.安装 parquet 后,它应该在step 2中可见
也可以尝试pip3 install parquet
如果有任何问题请告诉我。

w1jd8yoj

w1jd8yoj3#

xcode似乎出现问题。请尝试以下操作:

$ sudo rm -rf /Library/Developer/CommandLineTools

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

$ sudo xcode-select --install
hjqgdpho

hjqgdpho4#

你可以试试

python -m pip install parquet

(You我可能想尝试使用 * python2 * 或 * python3 *,这取决于您使用的是哪个python版本,如果您不知道,可以使用 * python--version * 检查。
还有parquet has been tested on python 2.7, 3.6 and 3.7,所以如果您没有这些版本中的任何一个,则可能会出现问题
你也可以尝试建立一个virtual environment,并尝试安装 parquet 在那里!

j9per5c4

j9per5c45#

它似乎是 parquet 不能安装它自己的系统与pip和一些版本的conda将不能正确运行与某些库
溶液:
1.重新安装管道:也许你的心碎了
1.使用pycharm来安装你的库(包括 parquet )
1.从git克隆并尽可能手动安装

ruoxqz4g

ruoxqz4g6#

也许这不是你想要的,或者你已经找到了,但是这个答案python parquet install fails on macos with snappy and thiftpy可能有助于寻找另一条出路。
parquet包没有维护,已经过时了,要用Python读写Parquet文件,需要安装pyarrow并使用pyarrow.parquet模块。

相关问题