any way to tell if user's python environment is anaconda

前端 未结 3 1442
暖寄归人
暖寄归人 2021-02-08 03:40

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

3条回答
  •  抹茶落季
    2021-02-08 03:46

    Documentation: http://docs.python.org/2/library/sys.html#sys.version

    In [1]: import sys; sys.version
    Out[1]: '2.7.5 |Anaconda 1.8.0 (64-bit)| (default, Jul  1 2013, 12:37:52) [MSC v.1500 64 bit (AMD64)]'
    

提交回复
热议问题