I have python
3.4.4
, 3.5.2
and 2.7
on my Ubuntu
machine. I already have pip3 installed but it is for version 3.5.2
. I want to download pip
for version 3.4.4
as this is the version I code in. I have seen the questions posted here on SO but none of them worked for me.
Asked
Active
Viewed 108 times
0

Community
- 1
- 1

Michael Yousrie
- 1,132
- 2
- 10
- 20
-
Use `python3.4 -m pip
`. -
Possible duplicate of [Pip suddenly using wrong version of Python](http://stackoverflow.com/questions/36311336/pip-suddenly-using-wrong-version-of-python) – Nov 23 '16 at 04:31
-
gives me and error `no module named pip` – Michael Yousrie Nov 23 '16 at 04:31
-
Then you'll need to install `pip` for Python 3.4 first. – Nov 23 '16 at 04:31
-
If I knew how to do that I wouldn't post that question :). – Michael Yousrie Nov 23 '16 at 04:32
-
Which Python 3 version is the one that Ubuntu maintains for you (i.e., which one did you not build yourself)? – Nov 23 '16 at 04:33
-
both `2.7` and `3.5.2`. – Michael Yousrie Nov 23 '16 at 04:34
-
Try `python3.4 -m ensurepip` first; see if that works. Otherwise, just follow the [pip installation guide](https://packaging.python.org/installing/#install-pip-setuptools-and-wheel). – Nov 23 '16 at 04:37
-
`Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS` is what `python3.4 -m ensurepip` returns. – Michael Yousrie Nov 23 '16 at 04:38
-
1Then you'll need to reinstall Python 3.4 with the necessary ssl modules compiled. I assume that during building and installation, you ignored some packages & modules that weren't build? – Nov 23 '16 at 04:39
-
1See also http://stackoverflow.com/questions/37723236/pip-error-while-installing-python-ignoring-ensurepip-failure-pip-8-1-1-requir – Nov 23 '16 at 04:40
-
Yep, that worked. please add that as an answer so I can accept it. – Michael Yousrie Nov 23 '16 at 04:44
-
I think it's more a duplicate of the linked question in my previous comment, isn't it? – Nov 23 '16 at 04:50
-
Correct. It is. is there a way for me to mark it as a duplicate or should I remove the question? ( i'm still fresh to SO, so excuse my noobishness ) – Michael Yousrie Nov 23 '16 at 04:53
-
http://meta.stackexchange.com/questions/79916/is-it-possible-to-mark-my-own-question-as-duplicate-of-another (except for the comment "You need 250 rep to vote to close your own questions,"...) – Nov 23 '16 at 04:53
-
yeah.. so what should I do ? I think you leaving an answer and me accepting it is the best solution ? – Michael Yousrie Nov 23 '16 at 04:56
-
1Leave it be. The current duplicate close vote is incorrect (due to unavailable information at the time) and can't be altered, but may attract further attention (and possibly pick up the correct duplicate). Flagging it is probably overkill and not done for this kind of issue. So all in all, I'd just leave the question as is. – Nov 23 '16 at 05:05
-
Ookie dookie. thanks for your help. – Michael Yousrie Nov 23 '16 at 05:06
-
You could [edit] your question to include a link to the actual duplicate (or possibly the answer itself). That'll be clearer for future readers. – Nov 23 '16 at 05:06
1 Answers
-2
Change python path in $PATH
to python3.4
export PATH=/path/to/python3.4/bin:$PATH

SaiNageswar S
- 1,203
- 13
- 22
-
In the answer, I gave solution in case VirtualEnv won't work. Anyways edited answer to use python3.4 without VirtualEnv – SaiNageswar S Nov 23 '16 at 04:43
-
If python path is changed to Python3.4, pip will also work for python3.4.. Pip for python3.4 would be located in python/3.4/site-packages – SaiNageswar S Nov 23 '16 at 04:45
-
My problem is already solved by Evert. I needed to install some dependencies, reconfigure and recompile the installation. it works now. Thanks. – Michael Yousrie Nov 23 '16 at 04:47