pip with embedded python

前端 未结 4 1387
感动是毒
感动是毒 2020-12-04 22:16

I installed embedded python from here, titled \"Windows x86-64 embeddable zip file\", but it does not have pip installed, it does not have site-packages either, when I try t

4条回答
  •  眼角桃花
    2020-12-04 22:45

    Pip can also be accessed programatically within python as a command (this example installs pandas):

    import pip
    pip.main(['install'], 'pandas')
    

    (Source: Installing python module within code)

提交回复
热议问题