前提・実現したいこと
NeoVimの設定をする際に
pip3 install --user pynvim
としたら, 下記のようなエラーが出ました. これを解決したいです.
発生している問題・エラーメッセージ
Collecting pynvim Using cached pynvim-0.4.2-py3-none-any.whl Requirement already satisfied: msgpack>=0.5.0 in /usr/local/lib/python3.9/site-packages (from pynvim) (1.0.2) Collecting greenlet Using cached greenlet-0.4.17.tar.gz (61 kB) Building wheels for collected packages: greenlet Building wheel for greenlet (setup.py) ... 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/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-install-j4srhh94/greenlet_7bd081db6a2e4a28bbe1ca8ec62234e3/setup.py'"'"'; __file__='"'"'/private/var/folders/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-install-j4srhh94/greenlet_7bd081db6a2e4a28bbe1ca8ec62234e3/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/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-wheel-czd79pwi cwd: /private/var/folders/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-install-j4srhh94/greenlet_7bd081db6a2e4a28bbe1ca8ec62234e3/ Complete output (12 lines): running bdist_wheel running build running build_ext building 'greenlet' extension creating build creating build/temp.macosx-11-x86_64-3.9 clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -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/opt/llvm/include -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.1_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c greenlet.c -o build/temp.macosx-11-x86_64-3.9/greenlet.o creating build/lib.macosx-11-x86_64-3.9 clang -bundle -undefined dynamic_lookup -L/usr/local/lib -L/usr/local/opt/llvm/lib -I/usr/local/opt/llvm/include build/temp.macosx-11-x86_64-3.9/greenlet.o -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -o build/lib.macosx-11-x86_64-3.9/greenlet.cpython-39-darwin.so ld: library not found for -lSystem clang-11: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/local/opt/llvm/bin/clang' failed with exit code 1 ---------------------------------------- ERROR: Failed building wheel for greenlet Running setup.py clean for greenlet Failed to build greenlet Installing collected packages: greenlet, pynvim Running setup.py install for greenlet ... 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/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-install-j4srhh94/greenlet_7bd081db6a2e4a28bbe1ca8ec62234e3/setup.py'"'"'; __file__='"'"'/private/var/folders/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-install-j4srhh94/greenlet_7bd081db6a2e4a28bbe1ca8ec62234e3/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/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-record-urn38s5s/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/shinouta/Library/Python/3.9/include/python3.9/greenlet cwd: /private/var/folders/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-install-j4srhh94/greenlet_7bd081db6a2e4a28bbe1ca8ec62234e3/ Complete output (12 lines): running install running build running build_ext building 'greenlet' extension creating build creating build/temp.macosx-11-x86_64-3.9 clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -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/opt/llvm/include -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.1_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c greenlet.c -o build/temp.macosx-11-x86_64-3.9/greenlet.o creating build/lib.macosx-11-x86_64-3.9 clang -bundle -undefined dynamic_lookup -L/usr/local/lib -L/usr/local/opt/llvm/lib -I/usr/local/opt/llvm/include build/temp.macosx-11-x86_64-3.9/greenlet.o -L/usr/local/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sqlite/lib -o build/lib.macosx-11-x86_64-3.9/greenlet.cpython-39-darwin.so ld: library not found for -lSystem clang-11: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/local/opt/llvm/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/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-install-j4srhh94/greenlet_7bd081db6a2e4a28bbe1ca8ec62234e3/setup.py'"'"'; __file__='"'"'/private/var/folders/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-install-j4srhh94/greenlet_7bd081db6a2e4a28bbe1ca8ec62234e3/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/fc/5zlw1p5n24xgyr1cbjr6d9x00000gn/T/pip-record-urn38s5s/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/shinouta/Library/Python/3.9/include/python3.9/greenlet Check the logs for full command output.
試したこと
greenletについて何か問題があるのだと考えたため, 解決方法を調べたところ,
・Pythonを最新にする
・xcode-select --installで, setuptolsをインストールする
などがありました. 全て試しましたが, 状況は変わりませんでした.
pipで他のパッケージを試しにインストールしようとしても, greenletについての同じようなエラーに阻害されました.
補足情報(FW/ツールのバージョンなど)
MacOS BigSur 11.1
NVIM v0.4.4
Python 3.9.1
pip 20.3.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
回答1件
あなたの回答
tips
プレビュー