Python Forum
python2 python3 messed up : How to fix ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python2 python3 messed up : How to fix ?
#15
I don't know this python-is-python3 package that you installed. Obviously it changed your default python command from python 2 to python 3, which is good, but it should also have changed the default pip command to work for python 3.

It means that when a site tells you to use the pip command you should use python -m pip instead or perhaps pip3 or even python3.8 -m pip as we did here to make sure that the package is installed for python 3 instead of python 2.

The problem in your case is that the command also installed another command platformio and this command uses python. As you installed it for python 2, it was unable to handle the fact that the python command now runs a different interpreter.
Reply


Messages In This Thread
python2 python3 messed up : How to fix ? - by hary - Dec-29-2020, 09:29 AM
RE: python2 python3 messed up : How to fix ? - by Gribouillis - Dec-30-2020, 07:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sad Migrating of python2 script to python3 zuri 7 996 Oct-05-2023, 02:40 PM
Last Post: snippsat
  Migration of Python2 and Python3 using Modernize and Future Rakshan 5 2,553 Oct-05-2023, 08:55 AM
Last Post: zuri
  Text Order is Kinda Messed Up? Prithak 0 1,046 Feb-03-2022, 04:00 PM
Last Post: Prithak
  Getting a small Python2 prog to run in Python3 steve140 4 3,903 Apr-19-2020, 09:27 AM
Last Post: steve140
  output mismatching when porting a python from python2 env to python3 env prayuktibid 2 2,577 Jan-21-2020, 04:41 AM
Last Post: prayuktibid
  python3 decoding problem but python2 OK mesbah 0 1,816 Nov-30-2019, 04:42 PM
Last Post: mesbah
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 4,936 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE
  Trying to run a python2 script dagamer1991 3 2,561 Aug-12-2019, 12:33 PM
Last Post: buran
  I think I messed up python.... XavPro_QC 7 14,142 Aug-02-2019, 09:02 PM
Last Post: XavPro_QC
  python2.7 executables thus the system python2.7 was erroring utility.execute()? vivekm 1 1,766 May-20-2019, 11:24 AM
Last Post: vivekm

Forum Jump:

User Panel Messages

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