Skip to content

Instantly share code, notes, and snippets.

@CodyKochmann
Created September 25, 2016 20:22
Show Gist options
  • Save CodyKochmann/4d6b40e77ba862e634185a038d2c3f13 to your computer and use it in GitHub Desktop.
Save CodyKochmann/4d6b40e77ba862e634185a038d2c3f13 to your computer and use it in GitHub Desktop.
install StaSh on pythonista for iOS to get pip working
# from https://forum.omz-software.com/topic/1919/stash-shell-like-an-expert-in-pythonista
# this script will get pip working on iOS!
import requests as r
exec(r.get('http://bit.ly/get-stash').text)
@jshers
Copy link

jshers commented Oct 18, 2019

Hey! I ran this on pythonista but still having issues installing Pandas and Beautiful Soup. Any suggestions?

@CodyKochmann
Copy link
Author

might be because those need to be compiled during install. Ive had issues with stash and cpython libraries since theyre designed to compile at install.
Ive only gotten it to work once as a POC, but it is possible to compile static clibs or .so files that work fine on pythonista in ios. Its not universal enough to apply to everything. But it is worth noting.

@CMWolfe922
Copy link

I dont know how This is supposed to work. I did everything the instructions said and nothing works. I have Pythonista on my iPhone and iPad. I ran

import requests as r
exec(r.get('http://bit.ly/get-stash').text)

Then tried running launch_stash.py (which doesn’t exist). I tried reading the README.md and doing everything that said and it still doesn’t work. Is there something I am missing? I thought once this is installed you can use pip in the console and download python packages.

@DeklynHunt
Copy link

i did this and was successful in the download/install on my phone, but i tried a couple commands and it said that pip didnt exist, i may have been doing it wrong i honestly dont know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment