pip error: unrecognized command line option ‘-fstack-protector-strong’

后端 未结 3 826
挽巷
挽巷 2020-12-18 21:46

When I sudo pip install pyquery, sudo pip install lxml, and sudo pip install cython, I get very similar output with the same error tha

3条回答
  •  猫巷女王i
    2020-12-18 22:48

    Instead of upgrading to GCC 4.9, I was trying to find where the flag was defined and remove it. On Debian Wheezy, I found it in /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.py which belongs to the libpython2.7-minimal package. My solution was to replace all occurrences of -fstack-protector-strong with -fstack-protector within this file. Then pip install executed the correct build command.

提交回复
热议问题