美文网首页
Pip安装不同版本的Python包

Pip安装不同版本的Python包

作者: DingDingYuan | 来源:发表于2020-04-28 10:06 被阅读0次

    On Linux, Mac OS X and other POSIX systems

    python2   -m pip install SomePackage  # default Python 2
    python2.7 -m pip install SomePackage  # specifically Python 2.7
    python3   -m pip install SomePackage  # default Python 3
    python3.4 -m pip install SomePackage  # specifically Python 3.4
    

    Windows

    py -2   -m pip install SomePackage  # default Python 2
    py -2.7 -m pip install SomePackage  # specifically Python 2.7
    py -3   -m pip install SomePackage  # default Python 3
    py -3.4 -m pip install SomePackage  # specifically Python 3.4
    

    Ref:
    https://docs.python.org/2/installing/index.html

    相关文章

      网友评论

          本文标题:Pip安装不同版本的Python包

          本文链接:https://www.haomeiwen.com/subject/dznmwhtx.html