多个python版本共存,pip使用

196 阅读1分钟

同时装了Python3和Python2,怎么用pip?

python3 -m pip install XXXX

python2 -m pip install XXXX

-m pip 表示运行 pip 模块,也就是运行pip命令了