How can I remove this error "AttributeError: module '' has no attribute 'set_credentials_file'?

I am starting with plotliy and in the first step I have already crashed with the error that I mention in the title. I work in a virtual environment with jupyter notebook, python 3.8 and plotly 4.12.

The statement that produces the error is:

import plotly (username = ‘xxxxxx’,
api_key = ‘xxxxxxx’)

AttributeError: module ‘’ has no attribute ‘set_credentials_file’

I would appreciate suggestions to solve this problem.