Sign in to follow this  
jowi

Python missing packages

2 posts in this topic Last Reply

Recommended Posts

Not specifically for unraid, but i'm trying to build some python scripts for calling a REST API from Sonarr, but i seem to be missing some imports, like requests, httplib2 etc.

I have no idea how to install these? I do have Python installed and running using the Nerd tools plugin.

 

If i google they keep referencing the pip tool, but it also doesn't seem to be installed?

Share this post


Link to post

Note to self:

 

info here:

https://packaging.python.org/tutorials/installing-packages/#ensure-you-can-run-pip-from-the-command-line

 

pip does not work from scratch, first run:

python -m ensurepip --default-pip

 

Then optionally upgrade pip using:

pip install --upgrade pip

 

And then just install the package from https://pypi.org/project/requests/ using:

pip install requests

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Copyright © 2005-2018 Lime Technology, Inc.
unRAID® is a registered trademark of Lime Technology, Inc.