Пытаюсь установить паркет через 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/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/[email protected]/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
Ошибки пункта:
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/[email protected]/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/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/[email protected]/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/[email protected]/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/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/[email protected]/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/[email protected]/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.
Что clang --version
ты? Вы случайно не смотрели это? — person Mark Bennett schedule 23.01.2021
Похоже, у вас кэширована извлеченная версия; попробуйте pip install parquet --no-cache-dir
. Если вы получите еще одну clang
ошибку, добавьте ее к вопросу (двух строк, начинающихся с clang -Wno-unused-result ...
и clang: error: ...
, уже будет достаточно) — person Mark Bennett schedule 23.01.2021
Однако я могу построить колесо с 0.4.13, так что это, вероятно, другая проблема. Попробуйте удалить свой CLT из /Library/Developer/CommandLineTools
и переустановить через xcode-select --install
. — person Mark Bennett schedule 23.01.2021
Как правило, вам следует использовать conda activate
вместо source activate
сейчас. — person Mark Bennett schedule 24.01.2021
Привет, @Jedi, clang —version дает: Apple clang версии 11.0.3 (clang-1103.0.32.62) — person Mark Bennett schedule 26.01.2021
@hoefling Я пробовал с —no-cache-dir, но все еще есть ошибки, которые я теперь включил в исходный вопрос выше. — person Mark Bennett schedule 26.01.2021
@hoefling Я попытался переустановить инструменты командной строки. Если я запускаю pip с —no-cache-dir сейчас, я получаю много /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/resource.h:202:2: error: unknown type name ‘uint8_t’ uint8_t ri_uuid [16]; — person Mark Bennett schedule 26.01.2021
Попробуйте установить export SYSTEM_VERSION_COMPAT=1
, а затем команду pip install parquet
. Это похоже на ту же проблему, что и в этом ТАК вопрос. — person Mark Bennett schedule 30.01.2021
Вы можете попробовать: MACOSX_DEPLOYMENT_TARGET=11.0 pip install parquet
— person Mark Bennett schedule 30.01.2021
Если вы хотите установить паркет другим способом, вам понадобится Pycharm, он должен быть простым в установке.
Откройте Pycharm и следуйте инструкциям:
step 2
.Пожалуйста, дайте мне знать, если возникнут проблемы.
При поиске Parquet все, что у меня есть, это fastparquet, input-parquet, parquet-cpp и json2parquet, но нет простого паркета. — person Mark Bennett; 26.01.2021
Очень надеюсь, что это тоже будет работать через командную строку. — person Mark Bennett; 26.01.2021
Странный. Даже я использую BigSur, и это видно на моем Pycharm. какую версию Python вы используете? — person Mark Bennett; 26.01.2021
также попробуйте
pip3 install parquet
в командной строке, если у вас установлен python3 — person Mark Bennett; 26.01.2021Похоже, что с xcode что-то не так. Попробуй это:
Убедитесь, что xcode установлен из appstore и запустите:
у меня был ujson, а не паркет, но это устранило мою проблему, когда я получил ту же ошибку — person Mark Bennett; 08.06.2021
Из ошибки видно, что
pip
пытается скомпилироватьparquet
в вашей системе. Эта ошибка возникает из-за того, чтоMACOSX_DEPLOYMENT_TARGET=11.0
не включен в стабильные инструменты командной строки XCode для MacOS 11. Вам необходимо установить Инструменты командной строки XCode 12.3, бета. После этого просто снова запуститеpip install
.Вы могли бы попробовать
(Вы можете попробовать использовать python2 или python3 в зависимости от того, какую версию python вы используете, если вы не знаете, вы можете проверить это с помощью python — -версия).
Кроме того, паркет был протестирован на python 2.7, 3.6 и 3.7, поэтому, если у вас нет одна из тех версий, которые могут быть проблемой
Вы также можете попробовать создать виртуальную среду и попробовать установить там паркет!
Кажется, что паркет не может установить его самостоятельно в системе с помощью pip, и некоторая версия conda не сможет правильно работать с определенной библиотекой
Решение:
переустановите pip: возможно, ваш pip каким-то образом сломан
используйте pycharm для установки вашей библиотеки (включая паркет)
клонировать из git и, если возможно, установить вручную
Возможно, это не то, что вы хотите или вы уже нашли, но этот ответ установка python parquet не удалась на macos с snappy и thiftpy, возможно, поможет найти другой выход.