我通过conda
安装了python 3.6.2,我正在尝试安装python模块 lsqfit 和 corrfitter (以及扩展名< em> gvar )。我在模块目录中使用pip install lsqfit
和make install
进行了尝试,并且总是收到以下消息:
pip install lsqfit
Collecting lsqfit
Using cached https://files.pythonhosted.org/packages/7f/4d/96bba1c633e360df1dd6cf0bc047e35c8ba96aef7e6f1c76ca2a849a4d35/lsqfit-11.2.tar.gz
Requirement already satisfied: numpy>=1.7 in /home/jaime/.anaconda3/lib/python3.6/site-packages (from lsqfit) (1.16.3)
Requirement already satisfied: scipy>=0.16 in /home/jaime/.anaconda3/lib/python3.6/site-packages (from lsqfit) (1.2.1)
Collecting gvar>=9.1 (from lsqfit)
Using cached https://files.pythonhosted.org/packages/8e/95/4a93066de972312d08f0c313003bac02099b16ad488133863a09f6e754f3/gvar-9.2.tar.gz
Building wheels for collected packages: lsqfit, gvar
Building wheel for lsqfit (setup.py) ... error
ERROR: Complete output from command /home/jaime/.anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-7y3mgmz6/lsqfit/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-il7h86cg --python-tag cp36:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/lsqfit
copying src/lsqfit/_extras.py -> build/lib.linux-x86_64-3.6/lsqfit
copying src/lsqfit/_scipy.py -> build/lib.linux-x86_64-3.6/lsqfit
copying src/lsqfit/__init__.py -> build/lib.linux-x86_64-3.6/lsqfit
running build_ext
building 'lsqfit._utilities' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
creating build/temp.linux-x86_64-3.6/src/lsqfit
gcc -pthread -B /home/jaime/.anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include -I/home/jaime/.anaconda3/include/python3.6m -c src/lsqfit/_utilities.c -o build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o
In file included from /home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822,
from /home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/lsqfit/_utilities.c:567:
/home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: aviso: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^~~~~~~
gcc -pthread -shared -B /home/jaime/.anaconda3/compiler_compat -L/home/jaime/.anaconda3/lib -Wl,-rpath=/home/jaime/.anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o -L/home/jaime/.anaconda3/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/lsqfit/_utilities.cpython-36m-x86_64-linux-gnu.so
/home/jaime/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: unable to initialize decompress status for section .debug_info
/home/jaime/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: unable to initialize decompress status for section .debug_info
/home/jaime/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: unable to initialize decompress status for section .debug_info
/home/jaime/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: file not recognized: File format not recognized
collect2: error: ld devolvió el estado de salida 1
*** Install failed. Trying again without gsl.
running bdist_wheel
running build
running build_py
copying src/lsqfit/__init__.py -> build/lib.linux-x86_64-3.6/lsqfit
running build_ext
building 'lsqfit._utilities' extension
gcc -pthread -B /home/jaime/.anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include -I/home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include -I/home/jaime/.anaconda3/include/python3.6m -c src/lsqfit/_utilities.c -o build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o
In file included from /home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822,
from /home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/lsqfit/_utilities.c:567:
/home/jaime/.anaconda3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: aviso: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^~~~~~~
gcc -pthread -shared -B /home/jaime/.anaconda3/compiler_compat -L/home/jaime/.anaconda3/lib -Wl,-rpath=/home/jaime/.anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o -L/home/jaime/.anaconda3/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/lsqfit/_utilities.cpython-36m-x86_64-linux-gnu.so
/home/jaime/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: unable to initialize decompress status for section .debug_info
/home/jaime/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: unable to initialize decompress status for section .debug_info
/home/jaime/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: unable to initialize decompress status for section .debug_info
/home/jaime/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.6/src/lsqfit/_utilities.o: file not recognized: File format not recognized
collect2: error: ld devolvió el estado de salida 1
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for lsqfit
Running setup.py clean for lsqfit