i\'m distributing an in-house python lib where i\'d like to make it such that if the user is using anaconda when running this file, that updates to the dependencies of the libra
In [109]: import sys
In [110]: 'conda' in sys.version
Out[110]: True
For version > 3.7, the version info has changed like:
In [2]: sys.version
Out[2]: '3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)]'
From this post The solution should be changed to:
import sys, os
is_conda = os.path.exists(os.path.join(sys.prefix, 'conda-meta'))