0

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.

Tiago Martins Peres
  • 14,289
  • 18
  • 86
  • 145
  • Can you explain what you mean with 'common method'? – Bollehenk Oct 17 '18 at 14:10
  • Possible duplicate of [pip: dealing with multiple Python versions?](https://stackoverflow.com/questions/2812520/pip-dealing-with-multiple-python-versions) – phd Oct 18 '18 at 14:14

2 Answers2

1

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.

Matthieu Brucher
  • 21,634
  • 7
  • 38
  • 62
0

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

Akash
  • 51
  • 1
  • 2