Hi Drees,
When you've installed a Python library on your system it is available throughout the system.
The only thing you have to do after installing the library is importing it in your Python file. For example if I would want to install pysftp (a Python library to access remote servers) I would first install the library on my system:
sudo pip install pysftp
P.S: Don't forget to keep an eye out for which Python version you want the app. If you need apps for Python 3 you should install them with pip3 install, if you want them for Python 2.x you should do pip install.
After doing this I can import this library in the Python file (usually under models/your_file.py) like this:
# -*- encoding: utf-8 -*-
import pysftp
from odoo import models, fields, api, tools, _
class YourClass(models.Model):
# Your functions and code here.
You can find an example in one of my public modules at https://github.com/Yenthe666/auto_backup/blob/10.0/auto_backup/models/db_backup.py#L35-L38
Regards,
Yenthe