pip install problem
See original GitHub issueAfter
pip install --upgrade jax jaxlib # CPU-only version
I get the following error messages:
ERROR: Complete output from command /home/username/miniconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-13vz5t0k/fastcache/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 /tmp/pip-wheel-2hul3mn8 --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/fastcache
copying fastcache/__init__.py -> build/lib.linux-x86_64-3.7/fastcache
copying fastcache/benchmark.py -> build/lib.linux-x86_64-3.7/fastcache
creating build/lib.linux-x86_64-3.7/fastcache/tests
copying fastcache/tests/__init__.py -> build/lib.linux-x86_64-3.7/fastcache/tests
copying fastcache/tests/test_thread.py -> build/lib.linux-x86_64-3.7/fastcache/tests
copying fastcache/tests/test_functools.py -> build/lib.linux-x86_64-3.7/fastcache/tests
copying fastcache/tests/test_clrucache.py -> build/lib.linux-x86_64-3.7/fastcache/tests
running build_ext
building 'fastcache._lrucache' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
gcc -pthread -B /home/username/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/username/miniconda3/include/python3.7m -c src/_lrucache.c -o build/temp.linux-x86_64-3.7/src/_lrucache.o
gcc -pthread -shared -B /home/username/miniconda3/compiler_compat -L/home/username/miniconda3/lib -Wl,-rpath=/home/username/miniconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/_lrucache.o -o build/lib.linux-x86_64-3.7/fastcache/_lrucache.cpython-37m-x86_64-linux-gnu.so
/home/username/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_lrucache.o: unable to initialize decompress status for section .debug_info
/home/username/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_lrucache.o: unable to initialize decompress status for section .debug_info
/home/username/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_lrucache.o: unable to initialize decompress status for section .debug_info
/home/username/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_lrucache.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.7/src/_lrucache.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for fastcache
Running setup.py clean for fastcache
Failed to build fastcache
Installing collected packages: fastcache, jax, jaxlib
Running setup.py install for fastcache ... error
ERROR: Complete output from command /home/username/miniconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-13vz5t0k/fastcache/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-nbn7ls65/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/fastcache
copying fastcache/__init__.py -> build/lib.linux-x86_64-3.7/fastcache
copying fastcache/benchmark.py -> build/lib.linux-x86_64-3.7/fastcache
creating build/lib.linux-x86_64-3.7/fastcache/tests
copying fastcache/tests/__init__.py -> build/lib.linux-x86_64-3.7/fastcache/tests
copying fastcache/tests/test_thread.py -> build/lib.linux-x86_64-3.7/fastcache/tests
copying fastcache/tests/test_functools.py -> build/lib.linux-x86_64-3.7/fastcache/tests
copying fastcache/tests/test_clrucache.py -> build/lib.linux-x86_64-3.7/fastcache/tests
running build_ext
building 'fastcache._lrucache' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
gcc -pthread -B /home/username/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/username/miniconda3/include/python3.7m -c src/_lrucache.c -o build/temp.linux-x86_64-3.7/src/_lrucache.o
gcc -pthread -shared -B /home/username/miniconda3/compiler_compat -L/home/username/miniconda3/lib -Wl,-rpath=/home/username/miniconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/src/_lrucache.o -o build/lib.linux-x86_64-3.7/fastcache/_lrucache.cpython-37m-x86_64-linux-gnu.so
/home/username/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_lrucache.o: unable to initialize decompress status for section .debug_info
/home/username/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_lrucache.o: unable to initialize decompress status for section .debug_info
/home/username/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_lrucache.o: unable to initialize decompress status for section .debug_info
/home/username/miniconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/src/_lrucache.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.7/src/_lrucache.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/home/username/miniconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-13vz5t0k/fastcache/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-nbn7ls65/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-13vz5t0k/fastcache/
This is on a Manjaro Linux system, strangely on an Ubuntu system the pip install works without problems. This might not be caused by JAX, but may be a problem with the system, but not sure.
`
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
How To Fix PIP Install Not Working? - TechNewsToday
The most common reasons for issues with PIP installations is either that an incorrect PIP path is added to the PATH system variable,...
Read more >How to Fix 'Pip' is Not Recognized as an Internal or External ...
Fix 4: Ensure Pip is Included in the Installation · Press the Windows key + R to open Run. · Type appwiz. ·...
Read more >How to Install Pip on Windows - ActiveState
One of the most common problems with running Python tools like pip is the “not on PATH” error. This means that Python cannot...
Read more >4 Ways to Fix the Pip Install Not Working Issue
How to Fix the Pip Install Not Working Issue · Open Command Prompt. · Execute the command “python -v”. It will tell you...
Read more >pip not working in Python Installation in Windows 10
Make sure the path to scripts folder for the python version is added to the path environment/system variable in order ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@alekk Good news! We’ve actually already dropped the
fastcache
dependency at Github head.Possibly bad news: we did so by dropping Python 2 support (allowing us to make use of Python 3’s built in LRU cache.)
I’ll make a new
jax
release so you don’t have to install fromgit
.I pushed
jax
0.1.58, which should resolve this problem. It requires Python 3.5 or greater.