Reputation: 2443
I'd like to import the "requests" library into my Kivy application. How do I go about that? Simply giving import requests is not working out.
Edit: I'm using Kivy on Mac OS X, 10.10.3.
Upvotes: 2
Views: 1550
Reputation: 2443
For a Mac specific answer, I tried
kivy -m pip install requests
.
This post helped me out.
Upvotes: 6
Reputation: 29450
If you're using windows with kivy's portable package, I think you can get a shell with kivy's env by running the kivy executable. Assuming so, I think you can run pip install requests
in this shell to install it to kivy's environment.
Edit: I see you've now noted you are using OS X, but something similar may be true. I don't know about this though.
Upvotes: 1