Fix miniconda path issue #26962
- [x] closes #26962
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Thanks @bhavaniravi, really great to have this fixed, much cleaner now Thank you @datapythonista I learned a lot in the process. Looking to contribute more on the devops side of things 