LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2019, 01:33 AM   #1
twirl
Member
 
Registered: Aug 2005
Posts: 168

Rep: Reputation: 15
Question Problem with python and Scrapy


Hi,

I have python installed and running Ubuntu 19.04 and installed scrapy with pip install scrapy and every time i try and run my script i get an error :-

scrapy runspider scraper.py

Command 'scrapy' not found, did you mean:

command 'scapy' from deb python-scapy
command 'scrappy' from deb libscrappy-perl

Try: sudo apt install <deb name>

Please help

Thank You
 
Old 01-21-2019, 01:48 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
apparently scrapy is not in your $PATH.
using pip for the first time? maybe you need to add some pip/python specific binary folder to your PATH.
  • read pip documentation. it is possible that pip already did that for you and all you need to do is log out/in. maybe.
  • find out where your scrapy is:
    Code:
    find "$HOME" -executable -name scrapy
  • maybe you need to add the containing directory to your $PATH yourself; see e.g. here
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Learning Python, how should I implement the following problem in Python 3 code? rblampain Programming 8 05-29-2016 10:53 AM
I got error while installing python-tk python-psycopg2 python-twisted saili kadam Linux - Newbie 1 09-05-2015 03:03 AM
LXer: Python modules you should know: Scrapy LXer Syndicated Linux News 0 04-24-2012 05:52 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 11:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration