Using easy_install inside a python script?

后端 未结 5 1916
小蘑菇
小蘑菇 2021-02-07 08:33

easy_install python extension allows to install python eggs from console like:

easy_install py2app

But is it possible to access easy_install fu

5条回答
  •  耶瑟儿~
    2021-02-07 08:42

    from setuptools.command import easy_install
    
    def install_with_easyinstall(package):
        easy_install.main(["-U", package]).
    
    install_with_easyinstall('py2app')
    

提交回复
热议问题