manjaro安裝pyspider

在安裝pyspider時(shí)出現(xiàn)各種問題齐鲤,這里記錄一下。

  1. 直接使用pip install pyspider纽谒,在安裝pycurl時(shí)出現(xiàn)錯(cuò)誤
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/
  1. 使用pip安裝pycurl時(shí)一直出現(xiàn)錯(cuò)誤,在網(wǎng)上也沒找到原因,就是用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

根據(jù)提示,我們采用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

執(zhí)行conda install --channel https://conda.anaconda.org/anaconda pycurl即可成功安裝pycurl

  1. 而后重新執(zhí)行pip install pyspider安裝成功
  2. 安裝成功之后在使用pyspider all來啟動(dòng)pyspider時(shí)又出現(xiàn)問題
- Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead.

查閱資料之后糕韧,最后定位在了wsgidav3.x問題枫振,pyspider會(huì)默認(rèn)安裝wsgidav3.x,解決辦法為先把3.x卸載萤彩,再裝2.x

pip uninstall wsgidav  
python -m pip install wsgidav==2.4.1
  1. 接下來繼續(xù)啟動(dòng)粪滤,但是還有問題(崩潰了。雀扶。杖小。)
Error: Could not create web server listening on port 25555

原因:對(duì)應(yīng)的25555端口被占用了
根本原因:之前的PySpider沒有正常的徹底的被關(guān)閉肆汹,所以殘留了。
解決辦法:徹底kill干掉之前的PySpider的進(jìn)程即可予权。

找到占了25555端口的進(jìn)程的id:ps aux | grep 25555
再去殺掉進(jìn)程:kill -s -9 process_id
  1. 我們繼續(xù)啟動(dòng)...
OSError: [Errno 98] Address already in use

解決:關(guān)閉terminal重開

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末昂勉,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子扫腺,更是在濱河造成了極大的恐慌岗照,老刑警劉巖,帶你破解...
    沈念sama閱讀 212,686評(píng)論 6 492
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件笆环,死亡現(xiàn)場離奇詭異攒至,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)躁劣,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,668評(píng)論 3 385
  • 文/潘曉璐 我一進(jìn)店門迫吐,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人习绢,你說我怎么就攤上這事渠抹。” “怎么了闪萄?”我有些...
    開封第一講書人閱讀 158,160評(píng)論 0 348
  • 文/不壞的土叔 我叫張陵梧却,是天一觀的道長。 經(jīng)常有香客問我败去,道長放航,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,736評(píng)論 1 284
  • 正文 為了忘掉前任圆裕,我火速辦了婚禮广鳍,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘吓妆。我一直安慰自己赊时,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,847評(píng)論 6 386
  • 文/花漫 我一把揭開白布行拢。 她就那樣靜靜地躺著祖秒,像睡著了一般。 火紅的嫁衣襯著肌膚如雪舟奠。 梳的紋絲不亂的頭發(fā)上竭缝,一...
    開封第一講書人閱讀 50,043評(píng)論 1 291
  • 那天,我揣著相機(jī)與錄音沼瘫,去河邊找鬼抬纸。 笑死,一個(gè)胖子當(dāng)著我的面吹牛耿戚,可吹牛的內(nèi)容都是我干的湿故。 我是一名探鬼主播阿趁,決...
    沈念sama閱讀 39,129評(píng)論 3 410
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼坛猪!你這毒婦竟也來了歌焦?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 37,872評(píng)論 0 268
  • 序言:老撾萬榮一對(duì)情侶失蹤砚哆,失蹤者是張志新(化名)和其女友劉穎独撇,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體躁锁,經(jīng)...
    沈念sama閱讀 44,318評(píng)論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡纷铣,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,645評(píng)論 2 327
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了战转。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片搜立。...
    茶點(diǎn)故事閱讀 38,777評(píng)論 1 341
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖槐秧,靈堂內(nèi)的尸體忽然破棺而出啄踊,到底是詐尸還是另有隱情,我是刑警寧澤刁标,帶...
    沈念sama閱讀 34,470評(píng)論 4 333
  • 正文 年R本政府宣布颠通,位于F島的核電站,受9級(jí)特大地震影響膀懈,放射性物質(zhì)發(fā)生泄漏顿锰。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 40,126評(píng)論 3 317
  • 文/蒙蒙 一启搂、第九天 我趴在偏房一處隱蔽的房頂上張望硼控。 院中可真熱鬧,春花似錦胳赌、人聲如沸牢撼。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,861評(píng)論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽熏版。三九已至,卻和暖如春缀匕,著一層夾襖步出監(jiān)牢的瞬間纳决,已是汗流浹背碰逸。 一陣腳步聲響...
    開封第一講書人閱讀 32,095評(píng)論 1 267
  • 我被黑心中介騙來泰國打工乡小, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人饵史。 一個(gè)月前我還...
    沈念sama閱讀 46,589評(píng)論 2 362
  • 正文 我出身青樓满钟,卻偏偏與公主長得像胜榔,于是被迫代替她去往敵國和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子湃番,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,687評(píng)論 2 351

推薦閱讀更多精彩內(nèi)容

  • Anaconda概述 Anaconda是一個(gè)用于科學(xué)計(jì)算的Python發(fā)行版夭织,支持 Linux, Mac, Win...
    dopami閱讀 3,688評(píng)論 0 1
  • 網(wǎng)址 下載與安裝 你可以使用我們提供的 Pip, Docker, Virtualenv, Anaconda 或 源...
    九七學(xué)姐閱讀 4,740評(píng)論 3 11
  • 《磐吉解字世說新語~品》 世說新語第九門~品藻。人的先天本無分別吠撮,都是來自宇宙中的一點(diǎn)靈光尊惰,等有了后天之后,便有了...
    愜意永不放棄閱讀 141評(píng)論 0 0
  • 昨夜伊人入夢來泥兰,鐵馬裘衣來弄屡。蕭瑟寒風(fēng)又一冬,故國應(yīng)是篝火染妝紅鞋诗。 棧橋歌聲仍猶在膀捷,只是佳人改。笑枕花石獨(dú)上樓削彬,山海...
    葉子聽不見葉落的聲音閱讀 381評(píng)論 0 0
  • Cyline閱讀 303評(píng)論 0 0