Follow the below steps:
1. Open CMD and Go to the python folder where pip is installed.
2. Type below command.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=15148309875582106538)
pip install tabpy-server
![](https://www.edureka.co/community/?qa=blob&qa_blobid=18039506176985465534)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=16172221978762288472)
3. Similarily open another terminal follow the same as step 1 and write below command for tabpy client
pip install tabpy-client
![](https://www.edureka.co/community/?qa=blob&qa_blobid=2447501407466439012)
4. After both are successfully installed, Go to Python folder -> Lib - > site-packages - > tabpy-server.
5. Click on the Startup file as shown in the image below
![](https://www.edureka.co/community/?qa=blob&qa_blobid=3101249569892470996)
6. A window opens with Port No and tabpy-server initiated.
7. Then Go to Tableau Desktop and got to Manage External Service Connections.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=16265391505088824143)
8. Enter the port No and the service as 9004 and Tabpy/External API.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=9257047478001786528)
9. Click on text connection to check connection.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=6088673870135385485)
If the above message is not visible then the tabpy-server is closed or not running, so run again and check connection.
10. Click ok.
Tableau can be used with python now.
Hope it helps!.