question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'scrapy' is not recognized as an internal or external command, operable program or batch file.

See original GitHub issue

Hi there,

I’ve installed Python 2.7.2 on Windows 7 (32-bit), easyinstall and pip, as well as Scrapy using pip.

When I open a command prompt and issue “scrapy” I am met with this error:

'scrapy' is not recognized as an internal or external command,
operable program or batch file.

I’ve checked my %PATH% which has both the Python27 directory and the Python27 Scripts directory which is where the scrapy “binary” resides.

C:\>echo %PATH%
C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Program Files\Common
Files\Microsoft Shared\Windows Live;C:\Windows\System32\WindowsPowerShell\v1.0;C
:\Program Files\Windows Live\Shared;C:\Program Files\TortoiseGit\bin;C:\Program
Files\TortoiseSVN\bin;C:\Program Files\QuickTime\QTSystem;C:\usr\bin;c:\Program
Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server
\100\DTS\Binn\;C:\HashiCorp\Vagrant\bin;C:\Program Files\Git\cmd;C:\Program File
s\Git\bin;C:\Program Files\Nmap;C:\ProgramData\chocolatey\bin;C:\Python27;C:\Pyt
hon27\Scripts;

This is not the first instance of this issue I’ve seen:

Yes the scrapy file exists:

C:\Python27\Scripts>dir scrapy
 Volume in drive C has no label.
 Volume Serial Number is ACF1-762D

 Directory of C:\Python27\Scripts

31/07/2014  13:58                72 scrapy
               1 File(s)             72 bytes
               0 Dir(s)   8,137,617,408 bytes free

Yes it has contents:

C:\Python27\Scripts>type scrapy
#!C:\Python27\python.exe

from scrapy.cmdline import execute
execute()

Yes I’m using a normal windows command line prompt:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

Yes I’ve rebooted.

I can’t put my finger on what I’m missing here…

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
dangracommented, Jul 31, 2014

You detailed the problem pretty well, but you must know Github issues are used for bug or feature discussions that directly affect Scrapy, not for problems in local setups. You will get better support at the forums

1reaction
jpswadecommented, Aug 1, 2014

If it doesn’t work out of the box in an environment it’s designed to run in, then I would say that’s a bug, hence the report.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scrapy installed, but won't recognized in the command line
'scrapy' is not recognized as an internal or external command, operable program or batch file. Note: I also have python 3.5 but that...
Read more >
Installation guide — Scrapy 1.0.7 documentation
Close the command prompt window and reopen it so changes take effect, run the following command and check it shows the expected Python...
Read more >
Scrapy installed, but won't recognized in the command line
I installed Scrapy in my python 2.7 environment in windows 7 but when I trying ... 'scrapy' is not recognized as an internal...
Read more >
Scrapy is not recognized as an internal or external command ...
The full error syntax is 'PROGRAM is not recognized as an internal or external command, operable program or batch file'. Where you see...
Read more >
Scrapy is not recognized - Coding Blocks Discussion Forum
'scarpy' is not recognized as an internal or external command, operable program or batch file. why this is happening. prashant_ml ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found