Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using pudb on python2 code
#1
I have removed pudb for python 3.7.3 from my pc windows install. A previous post informed me that the code that I was trying to run was python 2.7 code.

Okay.

I now have python 3.7.3 installed on my Windows 10 Pro system. I would
like to install python 2.7. Must I remove python 3.7.3 to do so?

When I installed pudb on my windows system this morning, did it install pudb3
since only python 3.7.3 is installed?

Is pudb specific to a python version, ie. pudb2 and pudb3? How to do install pudb
so it only uses or works with python 2.7.3.

Any help appreciated. Thanks in advance.

Respectfully,

ErnestTBass
Reply
#2
Python2 is very old and is no longer being updated. All python code should be upgraded to python3. Most code is pretty easy to move. There are even tools (2to3) that can help with some of the steps.

You can install python2 on windows. There is no need to remove python3. However, sometimes getting everything set so that the version you want to run is invoked can be tricky.
Reply
#3
There is now only Python 3.6+ version of PuDB,they did drop Python 2 support 23/7-2020.
Quote:When I installed pudb on my windows system this morning, did it install pudb3
since only python 3.7.3 is installed?
We have been trough this several time in your older Thread Wink
pip -V show always what version you install to.
Quick demo in cmd as i never use,as cmder is much better.
# Will install to 3.8
C:\>pip -V
pip 20.2 from c:\python38\lib\site-packages\pip (python 3.8)

# Install
C:\>pip install pudb
Collecting pudb .....  
Successfully installed pudb-2019.2 urwid-2.1.1

# Test that it work
C:\>python
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pudb
>>>
>>> pudb.__version__
'2019.2'
>>> exit()

C:\>
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to run a python2 script dagamer1991 3 2,562 Aug-12-2019, 12:33 PM
Last Post: buran
  python2.7 executables thus the system python2.7 was erroring utility.execute()? vivekm 1 1,767 May-20-2019, 11:24 AM
Last Post: vivekm
  Python2 is not supported Skaperen 2 2,184 Mar-01-2019, 07:50 PM
Last Post: stranac

Forum Jump:

User Panel Messages

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