pyspider显示安装成功但仍无法运行

发布于 2022-09-05 03:47:41 字数 4810 浏览 17 评论 0

各位大神好,我按照官网上的流程安装spider,并安装了需要的的库,安装过程最后显示安装成功,但是运行pyspider仍然显示"pyspider: command not found“,请教到底哪里出了问题。。。

aeolus@ubuntu:~$ pip install pyspider
Collecting pyspider
  Using cached pyspider-0.3.9.tar.gz
Collecting Flask-Login>=0.2.11 (from pyspider)
  Using cached Flask_Login-0.4.0-py2.py3-none-any.whl
Collecting Flask>=0.10 (from pyspider)
  Using cached Flask-0.12.2-py2.py3-none-any.whl
Collecting Jinja2>=2.7 (from pyspider)
  Using cached Jinja2-2.9.6-py2.py3-none-any.whl
Collecting chardet>=2.2 (from pyspider)
  Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting click>=3.3 (from pyspider)
  Using cached click-6.7-py2.py3-none-any.whl
Collecting cssselect>=0.9 (from pyspider)
  Using cached cssselect-1.0.1-py2.py3-none-any.whl
Collecting lxml (from pyspider)
  Using cached lxml-3.8.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pycurl (from pyspider)
  Using cached pycurl-7.43.0.tar.gz
Collecting pyquery (from pyspider)
  Downloading pyquery-1.2.17-py2.py3-none-any.whl
Collecting requests>=2.2 (from pyspider)
  Downloading requests-2.18.1-py2.py3-none-any.whl (88kB)
    100% |████████████████████████████████| 92kB 129kB/s 
Collecting six>=1.5.0 (from pyspider)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting tblib>=1.3.0 (from pyspider)
  Downloading tblib-1.3.2-py2.py3-none-any.whl
Collecting tornado>=3.2 (from pyspider)
  Downloading tornado-4.5.1.tar.gz (483kB)
    100% |████████████████████████████████| 491kB 21kB/s 
Collecting u-msgpack-python>=1.6 (from pyspider)
  Downloading u_msgpack_python-2.4.1-py2.py3-none-any.whl
Collecting wsgidav (from pyspider)
  Downloading WsgiDAV-2.2.2-py2.py3-none-any.whl (140kB)
    100% |████████████████████████████████| 143kB 39kB/s 
Collecting Werkzeug>=0.7 (from Flask>=0.10->pyspider)
  Downloading Werkzeug-0.12.2-py2.py3-none-any.whl (312kB)
    100% |████████████████████████████████| 317kB 48kB/s 
Collecting itsdangerous>=0.21 (from Flask>=0.10->pyspider)
  Downloading itsdangerous-0.24.tar.gz (46kB)
    100% |████████████████████████████████| 51kB 53kB/s 
Collecting MarkupSafe>=0.23 (from Jinja2>=2.7->pyspider)
  Downloading MarkupSafe-1.0.tar.gz
Collecting certifi>=2017.4.17 (from requests>=2.2->pyspider)
  Downloading certifi-2017.4.17-py2.py3-none-any.whl (375kB)
    100% |████████████████████████████████| 378kB 44kB/s 
Collecting idna<2.6,>=2.5 (from requests>=2.2->pyspider)
  Using cached idna-2.5-py2.py3-none-any.whl
Collecting urllib3<1.22,>=1.21.1 (from requests>=2.2->pyspider)
  Downloading urllib3-1.21.1-py2.py3-none-any.whl (131kB)
    100% |████████████████████████████████| 133kB 17kB/s 
Collecting backports_abc>=0.4 (from tornado>=3.2->pyspider)
  Downloading backports_abc-0.5-py2.py3-none-any.whl
Collecting singledispatch (from tornado>=3.2->pyspider)
  Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting defusedxml (from wsgidav->pyspider)
  Downloading defusedxml-0.5.0-py2.py3-none-any.whl
Building wheels for collected packages: pyspider, pycurl, tornado, itsdangerous, MarkupSafe
  Running setup.py bdist_wheel for pyspider ... done
  Stored in directory: /home/aeolus/.cache/pip/wheels/00/96/59/db4a4d79c7e6cc60dabc31e0e8ab94a88bcf2fa0bcd08e72bb
  Running setup.py bdist_wheel for pycurl ... done
  Stored in directory: /home/aeolus/.cache/pip/wheels/29/c3/75/12eba77a3bd3b8ed0475680f1957d477c4e299081581effd34
  Running setup.py bdist_wheel for tornado ... done
  Stored in directory: /home/aeolus/.cache/pip/wheels/84/83/cd/6a04602633457269d161344755e6766d24307189b7a67ff4b7
  Running setup.py bdist_wheel for itsdangerous ... done
  Stored in directory: /home/aeolus/.cache/pip/wheels/fc/a8/66/24d655233c757e178d45dea2de22a04c6d92766abfb741129a
  Running setup.py bdist_wheel for MarkupSafe ... done
  Stored in directory: /home/aeolus/.cache/pip/wheels/88/a7/30/e39a54a87bcbe25308fa3ca64e8ddc75d9b3e5afa21ee32d57
Successfully built pyspider pycurl tornado itsdangerous MarkupSafe
Installing collected packages: click, Werkzeug, MarkupSafe, Jinja2, itsdangerous, Flask, Flask-Login, chardet, cssselect, lxml, pycurl, pyquery, certifi, idna, urllib3, requests, six, tblib, backports-abc, singledispatch, tornado, u-msgpack-python, defusedxml, wsgidav, pyspider
Successfully installed Flask-0.12.2 Flask-Login-0.4.0 Jinja2-2.9.6 MarkupSafe-1.0 Werkzeug-0.12.2 backports-abc-0.5 certifi-2017.4.17 chardet-3.0.4 click-6.7 cssselect-1.0.1 defusedxml-0.5.0 idna-2.5 itsdangerous-0.24 lxml-3.8.0 pycurl-7.43.0 pyquery-1.2.17 pyspider-0.3.9 requests-2.18.1 singledispatch-3.4.0.3 six-1.10.0 tblib-1.3.2 tornado-4.5.1 u-msgpack-python-2.4.1 urllib3-1.21.1 wsgidav-2.2.2
aeolus@ubuntu:~$ pyspider
pyspider: command not found

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

扮仙女 2022-09-12 03:47:41

自己解决了,我用pip卸载了pyspider,又重新安装了一遍,就这么神奇的好了(-_-)...
懂得大神可以再解释下,出现同样问题的童鞋也可以参考下

aeolus@ubuntu:~$ pip uninstall pyspider
Uninstalling pyspider-0.3.9:
  /home/aeolus/.local/bin/pyspider
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider-0.3.9.dist-info/DESCRIPTION.rst
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider-0.3.9.dist-info/INSTALLER
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider-0.3.9.dist-info/METADATA
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider-0.3.9.dist-info/RECORD
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider-0.3.9.dist-info/WHEEL
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider-0.3.9.dist-info/entry_points.txt
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider-0.3.9.dist-info/metadata.json
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider-0.3.9.dist-info/top_level.txt
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/base/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/base/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/base/projectdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/base/projectdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/base/resultdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/base/resultdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/base/taskdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/base/taskdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/basedb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/basedb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/elasticsearch/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/elasticsearch/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/elasticsearch/projectdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/elasticsearch/projectdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/elasticsearch/resultdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/elasticsearch/resultdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/elasticsearch/taskdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/elasticsearch/taskdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/local/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/local/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/local/projectdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/local/projectdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/mongodbbase.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/mongodbbase.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/projectdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/projectdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/resultdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/resultdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/taskdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mongodb/taskdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/mysqlbase.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/mysqlbase.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/projectdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/projectdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/resultdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/resultdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/taskdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/mysql/taskdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/redis/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/redis/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/redis/taskdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/redis/taskdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/projectdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/projectdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/resultdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/resultdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/sqlalchemybase.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/sqlalchemybase.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/taskdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlalchemy/taskdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/projectdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/projectdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/resultdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/resultdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/sqlitebase.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/sqlitebase.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/taskdb.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/database/sqlite/taskdb.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/fetcher/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/fetcher/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/fetcher/cookie_utils.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/fetcher/cookie_utils.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/fetcher/phantomjs_fetcher.js
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/fetcher/splash_fetcher.lua
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/fetcher/tornado_fetcher.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/fetcher/tornado_fetcher.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/ListIO.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/ListIO.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/base_handler.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/base_handler.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/bench.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/bench.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/counter.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/counter.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/dataurl.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/dataurl.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/log.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/log.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/multiprocessing_queue.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/multiprocessing_queue.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/pprint.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/pprint.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/response.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/response.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/result_dump.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/result_dump.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/sample_handler.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/sample_handler.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/url.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/url.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/utils.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/utils.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/wsgi_xmlrpc.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/libs/wsgi_xmlrpc.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/logging.conf
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/beanstalk.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/beanstalk.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/kombu_queue.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/kombu_queue.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/rabbitmq.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/rabbitmq.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/redis_queue.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/message_queue/redis_queue.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/processor/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/processor/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/processor/processor.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/processor/processor.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/processor/project_module.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/processor/project_module.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/result/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/result/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/result/result_worker.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/result/result_worker.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/run.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/run.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/scheduler/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/scheduler/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/scheduler/scheduler.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/scheduler/scheduler.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/scheduler/task_queue.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/scheduler/task_queue.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/scheduler/token_bucket.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/scheduler/token_bucket.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/__init__.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/__init__.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/app.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/app.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/bench_test.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/bench_test.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/debug.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/debug.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/index.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/index.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/login.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/login.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/result.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/result.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/css_selector_helper.min.js
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/debug.min.css
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/debug.min.js
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/index.min.css
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/index.min.js
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/result.min.css
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/result.min.js
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/task.min.css
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/task.min.js
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/tasks.min.css
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/tasks.min.js
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/static/webpack.config.js
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/task.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/task.pyc
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/templates/debug.html
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/templates/index.html
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/templates/result.html
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/templates/task.html
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/templates/tasks.html
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/webdav.py
  /home/aeolus/.local/lib/python2.7/site-packages/pyspider/webui/webdav.pyc
Proceed (y/n)? 
Your response ('') was not one of the expected responses: y, n
Proceed (y/n)? y
  Successfully uninstalled pyspider-0.3.9
aeolus@ubuntu:~$ sudo pip install pyspider
The directory '/home/aeolus/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/aeolus/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pyspider
Requirement already satisfied: Flask>=0.10 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: u-msgpack-python>=1.6 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: six>=1.5.0 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: pyquery in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: chardet>=2.2 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: tornado>=3.2 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: pycurl in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: click>=3.3 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: lxml in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: tblib>=1.3.0 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: Flask-Login>=0.2.11 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: wsgidav in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: requests>=2.2 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: cssselect>=0.9 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: Jinja2>=2.7 in ./.local/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: Werkzeug>=0.7 in ./.local/lib/python2.7/site-packages (from Flask>=0.10->pyspider)
Requirement already satisfied: itsdangerous>=0.21 in ./.local/lib/python2.7/site-packages (from Flask>=0.10->pyspider)
Requirement already satisfied: backports-abc>=0.4 in ./.local/lib/python2.7/site-packages (from tornado>=3.2->pyspider)
Requirement already satisfied: singledispatch in ./.local/lib/python2.7/site-packages (from tornado>=3.2->pyspider)
Requirement already satisfied: certifi in ./.local/lib/python2.7/site-packages (from tornado>=3.2->pyspider)
Requirement already satisfied: defusedxml in ./.local/lib/python2.7/site-packages (from wsgidav->pyspider)
Requirement already satisfied: idna<2.6,>=2.5 in ./.local/lib/python2.7/site-packages (from requests>=2.2->pyspider)
Requirement already satisfied: urllib3<1.22,>=1.21.1 in ./.local/lib/python2.7/site-packages (from requests>=2.2->pyspider)
Requirement already satisfied: MarkupSafe>=0.23 in ./.local/lib/python2.7/site-packages (from Jinja2>=2.7->pyspider)
Installing collected packages: pyspider
Successfully installed pyspider-0.3.9
aeolus@ubuntu:~$ pyspider
[I 170703 11:21:25 tornado_fetcher:638] fetcher starting...
[I 170703 11:21:25 result_worker:49] result_worker starting...
[I 170703 11:21:25 processor:211] processor starting...
[I 170703 11:21:25 scheduler:647] scheduler starting...
[I 170703 11:21:25 scheduler:586] in 5m: new:0,success:0,retry:0,failed:0
[I 170703 11:21:25 scheduler:782] scheduler.xmlrpc listening on 127.0.0.1:23333
[I 170703 11:21:26 app:76] webui running on 0.0.0.0:5000
phantomjs fetcher running on port 25555
[I 170703 11:22:25 scheduler:586] in 5m: new:0,success:0,retry:0,failed:0
[I 170703 11:23:25 scheduler:586] in 5m: new:0,success:0,retry:0,failed:0
[I 170703 11:24:25 scheduler:586] in 5m: new:0,success:0,retry:0,failed:0
[I 170703 11:25:25 scheduler:586] in 5m: new:0,success:0,retry:0,failed:0
微凉 2022-09-12 03:47:41

可能是VPS的问题,我也碰到过类似的问题,结果重启一下就好了。

暗藏城府 2022-09-12 03:47:41

建议装个虚拟环境搞比如装个Virtualenv,测试很爽的。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文