Python Forum
pip installs in a different python version and directory than the default 3.11
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip installs in a different python version and directory than the default 3.11
#8
Something is strange here.
Can do eg.
G:\div_code
λ where pip
C:\python311\Scripts\pip.exe

G:\div_code
λ pip -V
pip 23.1.2 from C:\python311\Lib\site-packages\pip (python 3.11)
Thern just delete the wrong Path in file system,and see if update to correct path to pip.

Can go into register(regedit) and look if it is correct there.
# System
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session

# User
HKEY_CURRENT_USER\Environment
Both is under key Path --> REG_EXPAND_SZ

Of course both this work and use corrct pip,if can not get pip alone to for some strange reason.
py -m pip install lxml 
python -m pip install lxml 
Reply


Messages In This Thread
RE: pip installs in a different python version and directory than the default 3.11 - by snippsat - Jun-20-2023, 12:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find out from outside Python (in Windows) the current version of Python? pstein 5 984 Jun-28-2024, 07:02 AM
Last Post: Samuel34
  run part of a script with a different version of Python jdog 3 714 May-27-2024, 01:57 AM
Last Post: Alice12
  How to resolve version conflicts in Python? taeefnajib 0 1,062 Apr-27-2023, 08:37 PM
Last Post: taeefnajib
  create a default path with idle to a specific directory greybill 0 949 Apr-23-2023, 04:32 AM
Last Post: greybill
  Python venv and PIP version issue JanOlvegg 2 1,476 Feb-22-2023, 02:22 AM
Last Post: JanOlvegg
  Python Version upgrade nitinkukreja 1 1,031 Feb-04-2023, 10:27 PM
Last Post: Larz60+
  Mac default python interpreter Viewpoint8455 2 1,050 Oct-13-2022, 06:25 AM
Last Post: perfringo
  Can't update new python version on Pycharm GOKUUUU 6 4,189 Jul-23-2022, 09:24 PM
Last Post: GOKUUUU
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,429 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Python keeps running the old version of the code quest 2 4,057 Jan-20-2022, 07:34 AM
Last Post: ThiefOfTime

Forum Jump:

User Panel Messages

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