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.
Forum Archive
Using pip to install nltk
MichaelC
May 04, 2016 - 02:06
Webmaster4o
May 04, 2016 - 03:31
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
May 04, 2016 - 05:09
@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
May 04, 2016 - 05:10
@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
May 04, 2016 - 07:28
Worked first time! Thanks everyone.
Lots to learn ......