qpython not able to download requests module

user2866839 picture user2866839 · Jul 25, 2014 · Viewed 10.4k times · Source

I am using qpython for programming python on android.In my script I am importing requests module and so I have tp install requests module from pip.When I run pip install requests command I get the following error:

error build/lib.linux-armv71-2.7/requests/auth.py:operation not permitted qpython

I get this error twice while installing requests and so I am not being able to run my script.

Answer

user1681650 picture user1681650 · Jul 25, 2014

You might need to manually download requests, extract and move it to your Lib/site-packages/Requests/ folder, from there python should be able to import from it. I don't see that package available for qpython, it might work out of the box or it might still need to be ported.

After installing qpython on my current device I was able to open the app, go to My QPython ->Scripts and use pip_console.py to try to install it but as you said it fails. I'm going to test later my above recommendation. My install directory is /sdcard/com.hipipal.qpyplus/lib/python2.7/site-packages/ and that is where I'm going to drop the requests library.