Python Forum
python pip - V points to old version of python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python pip - V points to old version of python
#1
Dear Python Experts,

When I run pip -V in my virtual environment I read:

(env_python36) C:\Users\myuser\Downloads\iwt_django36\iwt_django\iwt_django\env
_python36>pip -V
pip 7.1.2 from c:\program files\python35\lib\site-packages (python 3.5)

I use Windows 10 and have installed Python 3.6 in
C:\Users\myuser\AppData\Local\Programs\Python\Python36\python.exe

How can I point to the new version of Python?
Reply
#2
When you installed python 3.6 there was an option to update environment path.
In my opinion, the option should be the other way around, asking if you would like to forgo
updating environment.

The safest way to correct this is to reinstall. see: https://python-forum.io/Thread-Basic-Par...er-Windows
If you are comfortable with changing environmental variables, you can change the path (just change the 3.5 path to 3.6). If you don't
know how to do this, don't try, you could mess up your whole system.
Reply
#3
If you're only concerned about pip, use pip install --upgrade pip from the command prompt.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#4
Many thanks for the replies.
@ [b]Larz60+[/b] , how do I change the environmental variable, I could not find one that refers to python_home or anything.

@sparkz_alot,
Good idea, but my network does not allow a download. I would need to find the wheel.
Reply
#5
you should be able to do identify which python version via
py -3.6 -m pip install requests
py -3.5 -m pip install requests

or you can call direct path to that python versions pip
/path/to/python.exe -m pip install request

Here is a step by step process of installing python with pip and path
https://python-forum.io/Thread-Basic-Par...er-Windows
Recommended Tutorials:
Reply
#6
Awesom, thanks [b]metulburr[/b] !
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  run part of a script with a different version of Python jdog 2 444 Jan-09-2024, 08:49 PM
Last Post: jdog
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 731 Oct-04-2023, 10:01 AM
Last Post: snippsat
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 829 Jul-15-2023, 11:32 AM
Last Post: snippsat
  pip installs in a different python version and directory than the default 3.11 ao_tex_mal 9 3,338 Jun-20-2023, 02:55 PM
Last Post: snippsat
  [split] How to resolve version conflicts in Python? atonalwilson 1 990 May-04-2023, 09:02 AM
Last Post: buran
  How to resolve version conflicts in Python? taeefnajib 0 908 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  Python venv and PIP version issue JanOlvegg 2 1,252 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Python Version upgrade nitinkukreja 1 894 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Can't update new python version on Pycharm GOKUUUU 6 3,794 Jul-23-2022, 09:24 PM
Last Post: GOKUUUU
  Update old Python version because of security threads SanderV 2 1,546 Jun-06-2022, 07:49 PM
Last Post: SanderV

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020