Install a module using pip for specific python version

后端 未结 14 785
迷失自我
迷失自我 2020-11-22 17:14

On Ubuntu 10.04 by default Python 2.6 is installed, then I have installed Python 2.7. How can I use pip install to install packages for Python 2.7.

For

相关标签:
14条回答
  • 2020-11-22 18:02

    for python2 use:

    py -2 -m pip install beautifulsoup4
    
    0 讨论(0)
  • 2020-11-22 18:03

    In Windows, you can execute the pip module by mentioning the python version ( You need to ensure that the launcher is on your path )

    py -2 -m pip install pyfora
    
    0 讨论(0)
提交回复
热议问题