Question

I am trying to install this one: https://pypi.python.org/pypi/textblob-aptagger and it says to use this code - but I do not know where to use it (command line and Python console do not work):

$ pip install -U textblob-aptagger

I installed easy_install and pip using exe files from http://www.lfd.uci.edu/~gohlke/pythonlibs/

So when I use the command:

$ pip install -U textblob-aptagger

in the Python console I get this error:

  File "<console>", line 1
  $ pip install -U textblob-aptagger
  ^
  SyntaxError: invalid syntax  

Where should I use this installation command?

Was it helpful?

Solution

You run the executable from the command line, but since it's not in your PATH, you'll need to supply the full filepath. On my system pip is installed at C:\Python27\Scripts, so the command I would use to install textblob-aptagger would be C:\Python27\Scripts\pip.exe install -U textblob-aptagger. Yours will likely be located in a similar if not identical location.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top