同时装了Python3和Python2,使用pip

时间:2024-07-07 09:06:44

第一种方法: 

  pip安装:

  py -2 -m pip install …… 
  py -3 -m pip install ……

  运行代码:

  py -2 py.py
  py -2 py.py

第二种方法:

  运行代码:

    在代码前加

      #! python2
      #! python3

  

相关文章