Skip to content Skip to sidebar Skip to footer

Pip Installs Modules For Python2.7 Instead Of Python3.4

I have an Amazon EC2 instance. On that was just python 2.7 installed. So I installed Python3 with the command 'sudo yum install python34'. Then I tried to install modules with 'pip

Solution 1:

You can force package install for python3 by:

[sudo] python3 -m pip install [package]

Solution 2:

  1. try # pip install --upgrade pip. this would upgrade pip8.1.1(for python2.7) to 8.1.2(for python3) or
  2. try this https://bootstrap.pypa.io/get-pip.py, it would install pip2 and pip3 as well as setup properly, so this is recommended.

Post a Comment for "Pip Installs Modules For Python2.7 Instead Of Python3.4"