编译之,错误如下:
libpython3.5m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
其实这个错误很常见。需要重新编译Python3.5……麻烦?比编译不过强,有办法就很好啦!
./configure --prefix=/usr/local/ --enable-shared CFLAGS=-fPIC make clean make && sudo make install
一般建议删除目录后,重新解压、编译。