How do I install a python module on a different version of python

Viewed 345

In brief, I have Python 3.5 but now I also installed 3.6.

I am trying this:

pip3 install web3

This installs web3 only for Python 3.5 (my previous version), I want to make it for 3.6 as well? Thanks!

1 Answers

Your pip3 still has the path to Python 3.5 in it, so that is what gets run. You can also run pip as a module using the specific Python that you want.

python3.6 -m pip ...

Alternatively, copy pip3 to pip3.6 then modify it to use python3.6.

Related