Python: How to force overwriting of files when using setup.py install (distutil)
Go to the setup.py
directory and I simply use:
pip install .
It works for me.
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