manjaro安装pyspider
2019-06-17 本文已影响1人
callme周小伦
在安装pyspider时出现各种问题,这里记录一下。
- 直接使用
pip install pyspider
,在安装pycurl时出现错误
Building wheel for pycurl (setup.py) ... error
ERROR: Complete output from command /home/zhouxiaolun/.conda/envs/pytorch/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-odsl1ejb/pycurl/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-sh0qi9ey --python-tag cp36:
ERROR: Using curl-config (libcurl 7.64.0)
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/curl
copying python/curl/__init__.py -> build/lib.linux-x86_64-3.6/curl
running build_ext
building 'pycurl' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/docstrings.c -o build/temp.linux-x86_64-3.6/src/docstrings.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easy.c -o build/temp.linux-x86_64-3.6/src/easy.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easycb.c -o build/temp.linux-x86_64-3.6/src/easycb.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easyinfo.c -o build/temp.linux-x86_64-3.6/src/easyinfo.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easyopt.c -o build/temp.linux-x86_64-3.6/src/easyopt.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easyperform.c -o build/temp.linux-x86_64-3.6/src/easyperform.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/module.c -o build/temp.linux-x86_64-3.6/src/module.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/multi.c -o build/temp.linux-x86_64-3.6/src/multi.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/oscompat.c -o build/temp.linux-x86_64-3.6/src/oscompat.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/pythoncompat.c -o build/temp.linux-x86_64-3.6/src/pythoncompat.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/share.c -o build/temp.linux-x86_64-3.6/src/share.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/stringcompat.c -o build/temp.linux-x86_64-3.6/src/stringcompat.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/threadsupport.c -o build/temp.linux-x86_64-3.6/src/threadsupport.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/util.c -o build/temp.linux-x86_64-3.6/src/util.o
gcc -pthread -shared -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -L/home/zhouxiaolun/.conda/envs/pytorch/lib -Wl,-rpath=/home/zhouxiaolun/.conda/envs/pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/src/docstrings.o build/temp.linux-x86_64-3.6/src/easy.o build/temp.linux-x86_64-3.6/src/easycb.o build/temp.linux-x86_64-3.6/src/easyinfo.o build/temp.linux-x86_64-3.6/src/easyopt.o build/temp.linux-x86_64-3.6/src/easyperform.o build/temp.linux-x86_64-3.6/src/module.o build/temp.linux-x86_64-3.6/src/multi.o build/temp.linux-x86_64-3.6/src/oscompat.o build/temp.linux-x86_64-3.6/src/pythoncompat.o build/temp.linux-x86_64-3.6/src/share.o build/temp.linux-x86_64-3.6/src/stringcompat.o build/temp.linux-x86_64-3.6/src/threadsupport.o build/temp.linux-x86_64-3.6/src/util.o -L/opt/anaconda/lib -lcrypto -lssl -lcurl -o build/lib.linux-x86_64-3.6/pycurl.cpython-36m-x86_64-linux-gnu.so
/home/zhouxiaolun/.conda/envs/pytorch/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/docstrings.o: unable to initialize decompress status for section .debug_info
/home/zhouxiaolun/.conda/envs/pytorch/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/docstrings.o: unable to initialize decompress status for section .debug_info
/home/zhouxiaolun/.conda/envs/pytorch/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/docstrings.o: unable to initialize decompress status for section .debug_info
/home/zhouxiaolun/.conda/envs/pytorch/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/docstrings.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.6/src/docstrings.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 pycurl
Running setup.py clean for pycurl
Building wheel for Flask-Login (setup.py) ... done
Stored in directory: /home/zhouxiaolun/.cache/pip/wheels/39/10/74/d68194e28d5f7a83de5f66e5b2deff5ccbb424fe45e6b0e927
Building wheel for tornado (setup.py) ... done
Stored in directory: /home/zhouxiaolun/.cache/pip/wheels/72/bf/f4/b68fa69596986881b397b18ff2b9af5f8181233aadcc9f76fd
Building wheel for jsmin (setup.py) ... done
Stored in directory: /home/zhouxiaolun/.cache/pip/wheels/64/f4/de/9667d84f759289edf5442220997c6d4334637a6bb2a7b90f73
Building wheel for PyYAML (setup.py) ... done
Stored in directory: /home/zhouxiaolun/.cache/pip/wheels/16/27/a1/775c62ddea7bfa62324fd1f65847ed31c55dadb6051481ba3f
Successfully built pyspider Flask-Login tornado jsmin PyYAML
Failed to build pycurl
Installing collected packages: pycurl, Flask-Login, u-msgpack-python, tblib, defusedxml, jsmin, PyYAML, wsgidav, tornado, pyspider
Running setup.py install for pycurl ... error
ERROR: Complete output from command /home/zhouxiaolun/.conda/envs/pytorch/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-odsl1ejb/pycurl/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-f9ymo1m7/install-record.txt --single-version-externally-managed --compile:
ERROR: Using curl-config (libcurl 7.64.0)
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/curl
copying python/curl/__init__.py -> build/lib.linux-x86_64-3.6/curl
running build_ext
building 'pycurl' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/docstrings.c -o build/temp.linux-x86_64-3.6/src/docstrings.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easy.c -o build/temp.linux-x86_64-3.6/src/easy.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easycb.c -o build/temp.linux-x86_64-3.6/src/easycb.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easyinfo.c -o build/temp.linux-x86_64-3.6/src/easyinfo.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easyopt.c -o build/temp.linux-x86_64-3.6/src/easyopt.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/easyperform.c -o build/temp.linux-x86_64-3.6/src/easyperform.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/module.c -o build/temp.linux-x86_64-3.6/src/module.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/multi.c -o build/temp.linux-x86_64-3.6/src/multi.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/oscompat.c -o build/temp.linux-x86_64-3.6/src/oscompat.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/pythoncompat.c -o build/temp.linux-x86_64-3.6/src/pythoncompat.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/share.c -o build/temp.linux-x86_64-3.6/src/share.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/stringcompat.c -o build/temp.linux-x86_64-3.6/src/stringcompat.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/threadsupport.c -o build/temp.linux-x86_64-3.6/src/threadsupport.o
gcc -pthread -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/opt/anaconda/include -I/home/zhouxiaolun/.conda/envs/pytorch/include/python3.6m -c src/util.c -o build/temp.linux-x86_64-3.6/src/util.o
gcc -pthread -shared -B /home/zhouxiaolun/.conda/envs/pytorch/compiler_compat -L/home/zhouxiaolun/.conda/envs/pytorch/lib -Wl,-rpath=/home/zhouxiaolun/.conda/envs/pytorch/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/src/docstrings.o build/temp.linux-x86_64-3.6/src/easy.o build/temp.linux-x86_64-3.6/src/easycb.o build/temp.linux-x86_64-3.6/src/easyinfo.o build/temp.linux-x86_64-3.6/src/easyopt.o build/temp.linux-x86_64-3.6/src/easyperform.o build/temp.linux-x86_64-3.6/src/module.o build/temp.linux-x86_64-3.6/src/multi.o build/temp.linux-x86_64-3.6/src/oscompat.o build/temp.linux-x86_64-3.6/src/pythoncompat.o build/temp.linux-x86_64-3.6/src/share.o build/temp.linux-x86_64-3.6/src/stringcompat.o build/temp.linux-x86_64-3.6/src/threadsupport.o build/temp.linux-x86_64-3.6/src/util.o -L/opt/anaconda/lib -lcrypto -lssl -lcurl -o build/lib.linux-x86_64-3.6/pycurl.cpython-36m-x86_64-linux-gnu.so
/home/zhouxiaolun/.conda/envs/pytorch/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/docstrings.o: unable to initialize decompress status for section .debug_info
/home/zhouxiaolun/.conda/envs/pytorch/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/docstrings.o: unable to initialize decompress status for section .debug_info
/home/zhouxiaolun/.conda/envs/pytorch/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/docstrings.o: unable to initialize decompress status for section .debug_info
/home/zhouxiaolun/.conda/envs/pytorch/compiler_compat/ld: build/temp.linux-x86_64-3.6/src/docstrings.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.6/src/docstrings.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/zhouxiaolun/.conda/envs/pytorch/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-odsl1ejb/pycurl/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-f9ymo1m7/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-odsl1ejb/pycurl/
- 使用pip安装pycurl时一直出现错误,在网上也没找到原因,就是用conda来安装,先搜索pycurl包
anaconda search -t conda pycurl
Packages:
Name | Version | Package Types | Platforms | Builds
------------------------- | ------ | --------------- | --------------- | ----------
IzODA/pycurl | 7.43.0.2 | conda | zos-z | py37_0, py36_0
ODSP-TEST/pycurl | 7.43.0.2 | conda | zos-z | py37_0, py36_0
RahulJain/pycurl | 7.43.0 | conda | win-64 | py27_0
aetrial/pycurl | | conda | linux-64, osx-64 | py35_0, py27_0
anaconda/pycurl | 7.43.0.2 | conda | linux-ppc64le, osx-32, linux-64, win-32, osx-64, linux-32, win-64 | py36hb7f436b_3, py36hb7f436b_0, py35h7a9665c_3, py36_1, py36_0, py36h5e72054_3, py36_2, py27hdbc3d79_0, py35hb7f436b_0, py27hc64555f_0, py37h1ba5d50_0, py36h4e95443_3, py35h69e9701_3, py35hb7f436b_3, py36he5719a0_3, py27_3, py27_2, py27_1, py27_0, py35h74b6da3_0, py35h1afbfc0_3, py27hc2f6732_3, py27hcfb25f9_0, py35hd6f0fee_3, py37hb7f436b_0, py27hb7f436b_0, py27hb7f436b_3, py36ha12b0ac_0, py26_2, py26_0, py26_1, py37h74b6da3_0, py27h1ba5d50_0, py36h7a1dbc1_0, py36h1ba5d50_0, py36hdb90038_3, py35h4430707_3, py27ha12b0ac_0, py35hdbc3d79_0, py37ha12b0ac_0, py27h88528bd_3, py34_3, py34_2, py34_1, py34_0, py37hdbc3d79_0, py37h7a1dbc1_0, py33_0, py33_1, py33_2, py27h4a6fa90_3, py36hdbc3d79_0, py27hcf8ebea_3, py36h086bf4c_3, py27h398a7fe_3, py36h74b6da3_0, py35_2, py35_3, py35_0, py35_1
: A Python Interface To The cURL library
auto/pycurlbrowser | 0.3.0 | conda | linux-64 | py27_0
: https://github.com/ahri/pycurlbrowser
avengers/pycurl | 7.43.0 | conda | linux-64 | py27hf9bd8e4_2
: A Python Interface To The cURL library
c3i_test2/pycurl | 7.43.0 | conda | linux-64, win-32, osx-64, linux-32, win-64 | py35h7a9665c_3, py27h88528bd_3, py36h4e95443_3, py36h5e72054_3, py27h398a7fe_3, py35h1afbfc0_3, py27hc2f6732_3, py27h4a6fa90_3, py27hcf8ebea_3, py36h086bf4c_3, py36hdb90038_3, py35hd6f0fee_3, py35h69e9701_3, py36he5719a0_3, py35h4430707_3
: A Python Interface To The cURL library
conda-forge/pycurl | 7.43.0.2 | conda | linux-ppc64le, linux-64, linux-aarch64, osx-64, win-64 | py36h16ce93b_1, py27ha206b4a_1, py27h16ce93b_0, py27h16ce93b_1, py36h636d3bd_1, py37he91f4fc_1, py27h19f0dfe_1, py37h636d3bd_0, py37h16ce93b_1, py36h16ce93b_0, py37h16ce93b_0, py36ha206b4a_1, py36h636d3bd_0, py27h19f0dfe_0, py27ha206b4a_0, py37h636d3bd_1, py36he91f4fc_1, py27he91f4fc_1, py36ha206b4a_0, py37ha206b4a_0, py37ha206b4a_1
: A Python Interface To The cURL library
dhirschfeld/pycurl | 7.43.0 | conda | win-64 | py35_0
msft-sqlserver-example/pycurl | 7.43.0 | conda | win-64 | py35_2
rogerramos/pycurl | 7.43.0 | conda | linux-64 | py27_3
: PycURL -- A Python Interface To The cURL library
test_org_002/pycurl | 7.43.0 | conda | [] | py34_2, py27_3, py27_2, py34_1, py34_0, py35_2, py27_0, py33_0, py33_1, py33_2, py36_2, py35_0, py27_1, py36_0, py34_3, py26_2, py35_3, py26_0, py26_1
Found 13 packages
Run 'anaconda show <USER/PACKAGE>' to get installation details
根据提示,我们采用anaconda show anaconda/pycurl
Using Anaconda API: https://api.anaconda.org
Name: pycurl
Summary: A Python Interface To The cURL library
Access: public
Package Types: conda
Versions:
+ 7.19.5
+ 7.19.5.1
+ 7.19.0
+ 7.19.3.1
+ 7.19.5.3
+ 7.43.0
+ 7.43.0.1
+ 7.43.0.2
To install this package with conda run:
conda install --channel https://conda.anaconda.org/anaconda pycurl
执行conda install --channel https://conda.anaconda.org/anaconda pycurl
即可成功安装pycurl
- 而后重新执行
pip install pyspider
安装成功 - 安装成功之后在使用
pyspider all
来启动pyspider时又出现问题
- Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead.
查阅资料之后,最后定位在了wsgidav3.x
问题,pyspider会默认安装wsgidav3.x
,解决办法为先把3.x卸载,再装2.x
pip uninstall wsgidav
python -m pip install wsgidav==2.4.1
- 接下来继续启动,但是还有问题(崩溃了。。。)
Error: Could not create web server listening on port 25555
原因:对应的25555端口被占用了
根本原因:之前的PySpider没有正常的彻底的被关闭,所以残留了。
解决办法:彻底kill干掉之前的PySpider的进程即可。
找到占了25555端口的进程的id:ps aux | grep 25555
再去杀掉进程:kill -s -9 process_id
- 我们继续启动...
OSError: [Errno 98] Address already in use
解决:关闭terminal重开