Bottom Page

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?
Quote
#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.
metalray likes this post
Quote
#3
If you're only concerned about pip, use pip install --upgrade pip from the command prompt.
metalray likes this post
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
Quote
#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.
Quote
#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
metalray likes this post
Quote
#6
Awesom, thanks [b]metulburr[/b] !
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Wrong pip3 python location or new Version 007fred50 0 97 Mar-24-2020, 12:42 PM
Last Post: 007fred50
  Error while trying to see Python version with "sys.executable" karkas 5 234 Feb-09-2020, 01:55 AM
Last Post: karkas
  update certbot's python version metulburr 0 454 Sep-19-2019, 11:51 AM
Last Post: metulburr
  Im using python crash course version 2 james_newbie 3 237 Sep-07-2019, 09:21 PM
Last Post: ichabod801
  how to specify options or tickle python to output points swept by the optimization? bsmile 3 288 Aug-02-2019, 10:31 PM
Last Post: scidam
  Trouble importing modules on a new python version snackman_barry 2 416 Jul-12-2019, 11:15 AM
Last Post: snackman_barry
  [split] Using this Python version of text2pdf jonsnow1221 1 386 May-07-2019, 07:48 PM
Last Post: micseydel
  Using this Python version of text2pdf Pedroski55 1 491 Apr-15-2019, 08:12 AM
Last Post: Pedroski55
  can't install package web in version python 3.7 a21250450 1 514 Mar-29-2019, 11:28 AM
Last Post: Larz60+
  Python Version on Mac OSX Sparkstorm 5 622 Feb-06-2019, 10:32 AM
Last Post: Sparkstorm

Forum Jump:


Users browsing this thread: 1 Guest(s)