Python Forum
python 3 and python 2 pips not working in windows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python 3 and python 2 pips not working in windows
#3
If this is *your* machine, then do yourself a favor and install Python to C:\Python27 and C:\Python37. Pip is usually in the \pythonxx\scripts directory.

You need to add these to your path. Do this in Conjtrol Panel/System/look for Environment, and use system rather than user settings. C:\Python37;C:\Python37\scripts;C:\Python27;C:\Python27\scripts;

Do yourself a favor and copy Python37.exe to python3.exe and pip.exe to pip3.exe.
And do likewise with Python 2.7 . (Use pip2)

Then in your scripts, at the shebang use:
#!/env python3 for 3.7
#!/env python2 for 2.7

Pip is not a native part of python, and was bolted on much later....

It gets confusing because in many systems, including Debian here, pip will always default to Python 2.x

You can also try experimenting with symlinks to dirs already on your path, but I've run into problems with this on Anaconda.
Reply


Messages In This Thread
RE: python 3 and python 2 pips not working in windows - by millpond - Aug-17-2019, 05:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Excel isnt working properly after python function is started IchNar 2 364 May-01-2024, 06:43 PM
Last Post: IchNar
  Python trivial endgame engine is not working as expected max22 0 585 Feb-24-2024, 04:41 PM
Last Post: max22
Question How to add Python folder in Windows Registry ? Touktouk 1 346 Feb-20-2024, 01:04 PM
Last Post: DeaD_EyE
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 398 Feb-17-2024, 12:43 PM
Last Post: deanhystad
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 433 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  working directory if using windows path-variable chitarup 2 803 Nov-28-2023, 11:36 PM
Last Post: chitarup
Question Need Help with Vehicle Routing Problem with Time Windows (VRPTW) in Python kasper321421312 1 658 Nov-10-2023, 08:19 PM
Last Post: snippsat
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 828 Oct-04-2023, 10:01 AM
Last Post: snippsat
  C++ programmer confused about why Python isn't working the way I intend Radical 2 817 Sep-15-2023, 04:21 AM
Last Post: Radical
  New to Python - Not sure why this code isn't working - Any help appreciated TheGreatNinx 4 1,036 Jul-22-2023, 10:21 PM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

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