开发者

no error message in CMD after uninstalling python3.2

Hi I am running in windows XP. I have python2.6 and python 3.2 installed at the same time.

My problem i开发者_Go百科s when i uninstall python 3.2 and run a program with an error, the CMD does not return error message. But the program execute properly when it has no error.

I've tried re installing python2.6 but it is still the same.


  1. From the desktop, right-click My Computer and click Properties.
  2. In the System Properties window, click on the Advanced tab.
  3. In the Advanced section, click the Environment Variables button.
  4. In the Environment Variables window highlight the Path variable in the Systems Variable section and click the Edit button.
  5. Each directory is separated by a semi-colon. Add "C:\Python26" to the end (making sure it has a semi-colon before it).

Now you should be able to type "python test.py" from anywhere and it will work.


Here's how to fix the registry settings, so double-clicking a .py file will work:

Go into control panel, choose Add/Remove Programs. Find Python 2.6 and choose the option to repair it. Test to see if that fixed the problem.

If it still doesn't work, then: Go into control panel, choose Add/Remove Programs. Find Python 2.6 and choose the option to Change installed features. Choose to install the "Register as default Python" feature.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜