python setup.py uninstall

The command python setup.py uninstall is not a built-in command in Python and it may not work as expected.

To uninstall a package in Python, you can use the pip package manager by running the following command:

pip uninstall package_name

Watch a course Python - The Practical Guide

For example, to uninstall the package numpy, you would run:

pip uninstall numpy

Alternatively, you can use !pip if you are running the command from Jupyter notebook or IPython.

!pip uninstall numpy

Please note that you might need sudo or administrator privilege for it to work.