[Python] Changing the default pip

Discussão em 'Python' iniciado por Stack, Maio 2, 2025.

  1. Stack

    Stack Membro Participativo

    I have two locations of pip.

    which -a pip


    returns

    /opt/moose/miniconda/bin/pip
    /Users/sterlingbutters/anaconda3/bin/pip


    I would like to use the pip located in anaconda by default so that packages install in the anaconda environment. The configuration must leave the default python as that installed under the miniconda environment. In addition, the pip under the miniconda environment is associated with Python2 and the pip under the anaconda environment is associated with Python3. How can I change the default pip so that running

    pip install <package>


    installs to the anaconda environment?

    Also, what is the difference between regular pip, pip2, and pip3? If I am using python 3, do I need pip3 (I have regular pip)?

    All help is appreciated, thanks!

    Continue reading...

Compartilhe esta Página