Forum Archive

How do you install modules into the app

paultrott

Help New to Pythonista

I have just downloaded the app onto my ipad and see you can load extra code libraries/modules etc into the app. But I don't understand how you do this on the app.

I can see there is something called PIP that would be useful.

Can some one guide me or give some instructions

Thanks

Paul.

ccc

You need to install StaSH and then you can run pip in StaSH. The thing to watch out for is that the modules which you install need to be "Pure Python" which means that they do not require any C-libraries.

paultrott

Thanks for this.

So to be thick but to run pip how do you do this.

I have launched the stash and gets the cmd line

Thanks

ihf

@paultrott Provided the module is one that will run under Pythonista (Pure Python, etc.), you can type pip install modulename and see if the module works.

ccc

Once you have successfully installed StaSH then you need to reboot Pythonista and open the launch_stash.py script and run it. You should then be able to type pip -h.

theresavfields

Pythonista is a great way to work under developer mode. I am wanting to more scrape the Image but it is not supporting My Iphone to Itunes. Then I have installed Pythonista with the help of Apple Support Now it is working well to search and scraping of Image for my library.

eddo888

great to have StaSh
only works on python2
any suggestions for Python3 ?

ccc

What parts of StaSH are not compatible with Python 3??

fooois

Who can help me with the installation if I give you remote access to my computer? I am ready to pay for it. I cannot complete it on my own for an unknown reason. Maybe it depends on my location PostcodeFinder.net or IP address, I cannot explain it really. Who will have a free minute these days to help me with it? I will appreciate it a lot. Write to me directly please and thanks a lot...

bennr01

@ccc said:

What parts of StaSH are not compatible with Python 3??

git, gh as well as some less commonly used commands. Still, pip should work with python3.

@eddo888 are you sure you are using the latest version? Some time ago there was an update which requires an forced update (selfupdate -f). It was the same update which introduced py3 compatibility.

jmmelko

just to mention that I have managed to install the mido module in Pythonista after installing stash first.

I was amazed that it could work without breaking any of Apple API policies!

Actually the hardest part was to find launch_stash.py, which was in « This iPhone » and not in « Python modules/site-packages » as are the other Stash files.

ViRo0oS

@ccc hey i hope u get this, so i saw your comment and wanted to ask you how to install a module manually on pythonista 3 ?
Bcz i wanna install PyQt5 module and it says to install it manually i hope you get this and reply.

ccc

PyQT is incompatible with Pythonista.
https://forum.omz-software.com/topic/6438/closed-is-there-a-way-to-install-tkinter-kivy-pyqt-on-pythonista