Python: How to force overwriting of files when using setup.py install (distutil) Python: How to force overwriting of files when using setup.py install (distutil) python python

Python: How to force overwriting of files when using setup.py install (distutil)


The Python developers had the same idea, they just put the option after the command:

python setup.py install --force

The distutils documentation doesn't mention the --force option specifically, but you can find it by using the --help option:

python setup.py --help install


Go to the setup.py directory and I simply use:

pip install .

It works for me.