如何更改pip安装以使用python pip

时间:2016-10-12 06:07:50

标签: python pip

目前我使用pip安装subprocess32如下,我想删除对pip的依赖并使用python,如何将pip.main(["install", "subprocess32"])更改为C:\Python27\python.exe -m pip install subprocess32

try:
    import subprocess32
except ImportError:
    pip.main(["install", "subprocess32"])#change this call to C:\Python27\python.exe -m pip install subprocess32

0 个答案:

没有答案