Backport PR #42720 on branch 1.3.x (CLN: clean the conda-to-pip script)
Backport PR #42720: CLN: clean the conda-to-pip script
pre-cursor to #42901, see https://github.com/pandas-dev/pandas/pull/42720#issuecomment-893311648