reynoldsnlp / pipster

pipster: The pythonic way to `pip install`.
MIT License
8 stars 2 forks source link

Check to see if python is anaconda, and warn user #41

Closed reynoldsnlp closed 1 year ago

reynoldsnlp commented 1 year ago

pip and conda go together like beer and wine. If a user tries to use pipster.install for Anaconda python, it would be nice to warn the user that they should only use pip if they know what they are doing.

Anaconda can be reliably detected in Python >3.6 using...

import sys, os
is_conda = os.path.exists(os.path.join(sys.prefix, 'conda-meta'))

This warning should probably be issued at import.