Ask coding questions

← Back to all posts
Where and how to use command prompt in
nftn (8)

I am now learning scrapy. When I use Anaconda App, I can type "scrapy startproject tutorial" in Anaconda prompt or CMD to start a new project, but in, where shall I input this command? Either Shell or is not applicable to be input, since which cannot run the command.

Answered by ash15khng (724) [earned 5 cycles]
View Answer
ash15khng (724)

Do Control+Shift+P (or Cmd+Shift+P if on a Mac) and type "Open Shell". Press enter and a shell should open. However, it uses the Linux bash instead of the Windows CMD.

nftn (8)

@ash15khng Many thanks for your kind response. Now I can find open shell in and input command in it just like CMD in windows.

nftn (8)

@ash15khng Hi Ash, when I try to save the scrapy data by inputting 'scrapy crawl newproject -o items.json' in the shell, then it proceeded successfully, I input command 'dir' to see all the files under folder newproject, it showed items.json in the shell, but I cannot see it in the folder tree (in the left of the site layout). And after I refresh the page, I still cannot see this newly created file(items.json). I try 'dir' command again in the shell, neither can I see the files in the shell, it is really strange. Then where is my newly created file items.json? Do you know? Thanks.

Nefomemes (5)

I can't, I am using Firefox Dev Edition and it creates a new private tab.