Forum Archive

Using pip to install nltk

MichaelC

A nubile question. I have just installed Pythonista on y new iPad Pro and can not work out how to run pip.
I would like to be able to use nltk.
Search of the FAQ did not help, and entering pip in the console returns "invalid syntax"
Any pointers welcome - thanks.

Webmaster4o

Pythonista doesn't include pip. That would violate Apple's app review policies. However, StaSh does include it.

You can install StaSh by pasting

import urllib2; exec urllib2.urlopen('http://bit.ly/get-stash').read()

into the console.

Tizzy

@Webmaster4o is correct, as long as you're using Pythonista 2, not the Pythonista 3 beta (which you can find info about on this forum)

Tizzy

@MichaelC basically after you install stash, force quit Pythonista, then to launch stash you run the newly installed "launch Stash" script, then from the Stash prompt you can do pip

MichaelC

Worked first time! Thanks everyone.
Lots to learn ......