Sublime text 3 using pip to download stuff

I have set my sublime text to build on python version 3.4.3. I am trying to download Scrapy to test some stuff, but pip download is failing.

My code in sublime text is :

import sys
print (sys.version)
pip install Scrapy

Output:

File "/Users/X/Documents/Learn/XX/Python1.py", line 3 pip install Scrapy ^ SyntaxError: invalid syntax [Finished in 0.1s with exit code 1]

Can anyone point out what am I doing wrong?

Answers


You need to run pip install scrapy from the command line, not from within a Python program. Open up Terminal (Applications -> Utilities -> Terminal.app) and run pip from there.


Need Your Help

Top & httpd - demystifying what is actually running

process apache

I often use the "top" command to see what is taking up resources. Mostly it comes up with a long list of Apache httpd processes, which is not very useful. Is there any way to see a similar list, bu...

Javascript Domain / Subdomain Extract Path

javascript regex

I have the following domains and I'd like to use javascript to return a certain 'prettified' label from each.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.