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 ?
#10
It is not a nightmare any more. The only thing to remember is to not use Python 2.7 or to have an operating system where Python 2.7 is not installed.

If I understand well, you followed the instructions here https://github.com/armageddon421/electrodacus-esp32 to install platformio and in these instructions there was the following command
Output:
pip install -U platformio
Unfortunately, my guess is that the 'pip' command that you used was that of python 2.7.

Here is my suggestion
  1. Run the command pip uninstall platformio
  2. Then run the command python3.8 -m pip install -U platformio
  3. Then run the command platformio update
Then see if it works better. It should as platformio's page on pypi is compatible with python 3 https://pypi.org/project/platformio/
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-29-2020, 08:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sad Migrating of python2 script to python3 zuri 7 1,074 Oct-05-2023, 02:40 PM
Last Post: snippsat
  Migration of Python2 and Python3 using Modernize and Future Rakshan 5 2,614 Oct-05-2023, 08:55 AM
Last Post: zuri
  Text Order is Kinda Messed Up? Prithak 0 1,058 Feb-03-2022, 04:00 PM
Last Post: Prithak
  Getting a small Python2 prog to run in Python3 steve140 4 3,945 Apr-19-2020, 09:27 AM
Last Post: steve140
  output mismatching when porting a python from python2 env to python3 env prayuktibid 2 2,617 Jan-21-2020, 04:41 AM
Last Post: prayuktibid
  python3 decoding problem but python2 OK mesbah 0 1,829 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,981 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE
  Trying to run a python2 script dagamer1991 3 2,580 Aug-12-2019, 12:33 PM
Last Post: buran
  I think I messed up python.... XavPro_QC 7 14,259 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,787 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