pyspider显示安装成功但仍无法运行
各位大神好,我按照官网上的流程安装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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
自己解决了,我用pip卸载了pyspider,又重新安装了一遍,就这么神奇的好了(-_-)...
懂得大神可以再解释下,出现同样问题的童鞋也可以参考下
可能是VPS的问题,我也碰到过类似的问题,结果重启一下就好了。
建议装个虚拟环境搞比如装个Virtualenv,测试很爽的。