Lingwei Zhan
Lingwei Zhan

Reputation: 1

how to use pip install a package if there are two same version of python on windows

I have two same versions of python on windows. Both are 3.6.4. I installed one of them, and the other one comes with Anaconda.

My question is how do I use pip to install a package for one of them? It looks like the common method will not work since the two python versions are the same.

Upvotes: 0

Views: 98

Answers (2)

Akash
Akash

Reputation: 71

Use virtualenv, conda environment or pipenv, it will help with managing packages for different projects.

Upvotes: 0

Matthieu Brucher
Matthieu Brucher

Reputation: 22043

pip points to only one installation because pip is a script from one python.

If you have one Python in your PATH, then it's that python and that pip that will be used.

Upvotes: 1

Related Questions