我正在 WINdows 10 上使用 Python 3.7 开发软件。
我新安装了windpb
J:\Dropbox\cff\Python\PhoneBotV3>python -m pip install --upgrade winpdb-reborn
Requirement already up-to-date: winpdb-reborn in c:\users\nino\appdata\local\programs\python\python37\lib\site-packages (2.0.0.1)
Requirement already satisfied, skipping upgrade: wxpython>=4 in c:\users\nino\appdata\local\programs\python\python37\lib\site-packages (from winpdb-reborn) (4.1.1)
Requirement already satisfied, skipping upgrade: pillow in c:\users\nino\appdata\local\programs\python\python37\lib\site-packages (from wxpython>=4->winpdb-reborn) (6.0.0)
Requirement already satisfied, skipping upgrade: numpy; python_version >= "3.0" in c:\users\nino\appdata\local\programs\python\python37\lib\site-packages (from wxpython>=4->winpdb-reborn) (1.18.2)
Requirement already satisfied, skipping upgrade: six in c:\users\nino\appdata\local\programs\python\python37\lib\site-packages (from wxpython>=4->winpdb-reborn) (1.15.0)
然后我用这个命令运行它:
winpdb MySoft.py
什么都没发生。
所以我运行这个:
python -m winpdb MySoft.py
GUI 是打开的并且是空的。没有文件,没有代码。所以我尝试通过再次运行命令来附加文件
python -m winpdb MySoft.py
它第一次打开带有此消息的 cmd 窗口:
C:\Users\Nino\AppData\Local\Programs\Python\Python37\python.exe: can't open file 'session_manager\..\rpdb2.py': [Errno 2] No such file or directory
第二次附加命令(菜单>文件>附加)时,我得到另一个带有完全相同消息的cmd窗口:
C:\Users\Nino\AppData\Local\Programs\Python\Python37\python.exe: can't open file 'session_manager\..\rpdb2.py': [Errno 2] No such file or directory
然后我在 StackOverflow、谷歌等网站上搜索了这个文件和这个问题……没什么!?
那么我做错了什么?
任何人都可以帮助我吗?
UDPATE:
我下载了这个文件: https ://raw.githubusercontent.com/bluebird75/winpdb/master/rpdb2.py
并将其放在 Python 文件夹中。它没有解决我的问题。