Forums

How to install libraries

When I run my script I got this error:

Traceback (most recent call last):
  File "/home/Camillus/spend_report.py", line 1, in <module>
    import check_and_send_email as ca
  File "/home/Camillus/./check_and_send_email.py", line 6, in <module>
    from facebook_business.api import FacebookAdsApi
ModuleNotFoundError: No module named 'facebook_business'

How to solve it?

You can install Python packages with pip command in a Bash console. Make sure that you use pip for the same Python version / from the same virtual environment that runs your script.

.