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

fail to install with pip #8

Closed
spsc83 opened this issue May 29, 2021 · 0 comments
Closed

fail to install with pip #8

spsc83 opened this issue May 29, 2021 · 0 comments

Comments

@spsc83
Copy link

spsc83 commented May 29, 2021

It took me hours to figure out the way to install liftover. I just write it here in case someone has the same problem.

OS: centOS6

I got this while I was trying to install lifterover using 'pip install liftover':
Building wheels for collected packages: liftover
Building wheel for liftover (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /gs/gsfs0/users/yizhao/miniconda2/bin/python /gs/gsfs0/users/yizhao/miniconda2/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpMBscfO
cwd: /tmp/pip-install-HWwAKR/liftover
Complete output (19 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/liftover
copying liftover/lifter.py -> build/lib.linux-x86_64-2.7/liftover
copying liftover/init.py -> build/lib.linux-x86_64-2.7/liftover
copying liftover/download_file.py -> build/lib.linux-x86_64-2.7/liftover
running build_ext
building 'liftover.chain_file' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/liftover
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/gzstream
gcc -pthread -B /gs/gsfs0/users/yizhao/miniconda2/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Isrc/ -Isrc/gzstream/ -Isrc/intervaltree/ -I/gs/gsfs0/users/yizhao/miniconda2/include/python2.7 -c liftover/chain_file.cpp -o build/temp.linux-x86_64-2.7/liftover/chain_file.o -std=c++11
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: error: unrecognized command line option "-std=c++11"
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for liftover
Running setup.py clean for liftover
Failed to build liftover
ERROR: Could not build wheels for liftover which use PEP 517 and cannot be installed directly

So I check my gcc version is 4.4.7. And google told me to use c++11 it need to be at lease 4.7.x. After I upgraded my gcc to 4.7.4, it was installed successfully.

@spsc83 spsc83 closed this as completed May 29, 2021
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