Follow the below steps:
1. Visit this link https://github.com/tableau/TabPy and download the TabPy folder in Desktop.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=11899443173069462512)
2. After downloading the folder, Click on the bar as shown below and copy the address. Go to CMD and enter the address preceding with cd .
![](https://www.edureka.co/community/?qa=blob&qa_blobid=6086561041966442979)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=3718719214311091375)
3. Now type the startup.cmd as shown below,
![](https://www.edureka.co/community/?qa=blob&qa_blobid=8111761942361058684)
NOTE : Possible Errors
- Error as Python is neither an internal nor an external command, then add the folder path to your system environemnt variable as shown below in System path variables.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=15150629395142545710)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=8479032606331818042)
Then Install Tornado using below code using pip and run the command again.
pip install Tornado==5.1.1
4. Once the tabpy-server is ready and started then you would see like below image.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=15503060510623108816)
The above image shows the Port No to be used by tableau to connect with Python - 9004.
5, Go to Tableau Desktop and go to Manage External Service Connection.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=3517937370941447747)
6. A dialog box opens like below, Type port as 9004 and Select the external service as TabPy/External API.
7. To check whether the connection is working. Click on Test Connection, then you would get window like below
![](https://www.edureka.co/community/?qa=blob&qa_blobid=12082495106444526778)
8. Click OK. Now got to the terminal where TabPy-server was started, you would see Handling messages and the code 200 to show Ok along with time.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=10116724268103909234)
9. Now Tableau is ready to be used with Python.
Hope it helps!.
Any queries, revert back with doubts.