divinorum-webb / tableau-api-lib

An API library that allows developers to call on the methods listed in Tableau's REST API documentation.
MIT License
96 stars 34 forks source link

ModuleNotFoundError: No module named 'tableau_api_lib' #94

Closed satyamk28 closed 2 years ago

satyamk28 commented 2 years ago

I have installed the library using command pip install --upgrade tableau-api-lib

It is also installed on my system

image

But when I am running in on Jupyter, I am getting error that

image

I have tried restarting the system and kernel.

divinorum-webb commented 2 years ago

This is most likely an issue with your environment. On a windows machine I've had issues with packages and Python environments before. Seeing ~/AppData/ in the file path makes me think there might be some of that weirdness at play for you.

I'd recommend creating a virtual environment and then activate that environment, install the package within that environment, and try again. If you're using PyCharm, the IDE can help you do this as well.

How to create a python virtual environment: https://docs.python.org/3/library/venv.html

satyamk28 commented 2 years ago

Virtual environment worked like a charm. Thanks for the help.