Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot install in mac #11

Open
carry121 opened this issue Jun 2, 2021 · 0 comments
Open

cannot install in mac #11

carry121 opened this issue Jun 2, 2021 · 0 comments

Comments

@carry121
Copy link

carry121 commented Jun 2, 2021

ERROR: Command errored out with exit status 1:
Collecting polygon-geohasher
Using cached polygon_geohasher-0.0.1-py3-none-any.whl
Collecting python-geohash
Using cached python-geohash-0.8.5.tar.gz (17 kB)
Requirement already satisfied: shapely in /usr/local/lib/python3.9/site-packages (from polygon-geohasher) (1.7.1)
Building wheels for collected packages: python-geohash
Building wheel for python-geohash (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/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/setup.py'"'"'; file='"'"'/private/var/folders/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/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/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-wheel-lvddbu3m
cwd: /private/var/folders/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.9
copying geohash.py -> build/lib.macosx-10.15-x86_64-3.9
copying quadtree.py -> build/lib.macosx-10.15-x86_64-3.9
copying jpgrid.py -> build/lib.macosx-10.15-x86_64-3.9
copying jpiarea.py -> build/lib.macosx-10.15-x86_64-3.9
running build_ext
building '_geohash' extension
creating build/temp.macosx-10.15-x86_64-3.9
creating build/temp.macosx-10.15-x86_64-3.9/src
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/MacOSX10.15.sdk/usr/include -DPYTHON_MODULE=1 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/python@3.9/3.9.1_7/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/geohash.cpp -o build/temp.macosx-10.15-x86_64-3.9/src/geohash.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1

ERROR: Failed building wheel for python-geohash
Running setup.py clean for python-geohash
Failed to build python-geohash
Installing collected packages: python-geohash, polygon-geohasher
Running setup.py install for python-geohash ... 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/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/setup.py'"'"'; file='"'"'/private/var/folders/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/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/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-record-g206bq0l/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/python-geohash
cwd: /private/var/folders/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/
Complete output (16 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-3.9
copying geohash.py -> build/lib.macosx-10.15-x86_64-3.9
copying quadtree.py -> build/lib.macosx-10.15-x86_64-3.9
copying jpgrid.py -> build/lib.macosx-10.15-x86_64-3.9
copying jpiarea.py -> build/lib.macosx-10.15-x86_64-3.9
running build_ext
building '_geohash' extension
creating build/temp.macosx-10.15-x86_64-3.9
creating build/temp.macosx-10.15-x86_64-3.9/src
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/MacOSX10.15.sdk/usr/include -DPYTHON_MODULE=1 -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/python@3.9/3.9.1_7/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/geohash.cpp -o build/temp.macosx-10.15-x86_64-3.9/src/geohash.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
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/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/setup.py'"'"'; file='"'"'/private/var/folders/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/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/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-record-g206bq0l/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/python-geohash Check the logs for full command output.
WARNING: You are using pip version 21.0.1; however, version 21.1.2 is available.
You should consider upgrading via the '/usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip' command.
bytedance@C02F65Q8MD6R ~ % 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/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/setup.py'"'"'; file='"'"'/private/var/folders/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-install-g5rrrsfz/python-geohash_874e58bf73d4448eb8d54c2d3f0be4dd/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/0d/9kppky_56vz1nf_1twn744d80000gp/T/pip-record-g206bq0l/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/python-geohash Check the logs for full command output
zsh: command not found: ERROR:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant