After following the instructions in the README to install the carto module, I am still not able to import carto in this simple hello-world-like app (named app.py):
import os
# import carto
# from carto import auth
from carto.auth import APIKeyAuthClient
USERNAME="ruralinnovation-admin"
USER_BASE_URL = "https://{user}.[carto.com/](http://carto.com/)".format(user=USERNAME)
auth_client = auth.APIKeyAuthClient(api_key=os.getenv("CARTO_COM_API_KEY"), base_url=USER_BASE_URL)
Traceback (most recent call last):
File "/Users/xxxxxxx/app.py", line 4, in <module>
from carto.auth import APIKeyAuthClient
ModuleNotFoundError: No module named 'carto'
After following the instructions in the README to install the carto module, I am still not able to import carto in this simple hello-world-like app (named
app.py
):