kAldown kAldown - 1 year ago 118
Python Question

How to pip install for certain version of python

I need to install

for python3

pip install requests

installs it for python2.7.

How to do this without

Answer Source

To resolve conflicting installation sites always follow the following steps:

  1. To install for python3 use: python3 -m pip install requests

  2. For python2 use: python2 -m pip install [any_module]

This will prevent any conflicts, which I hope is what you are asking.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download