Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
250 views
in Technique[技术] by (71.8m points)

visual studio code - python 3.8/3.9 IDLE won't run

Yesterday my IDLE stopped working after I have tried to run

print(datetime.datetime)

I could open my IDLE and from there go to File>Open and open a .py file, but I couldn't right click on a .py file and open it with IDLE.

I have added the PATH again, reinstalled python, added python 3.9.

Now when I click on IDLE 3.8 or 3.9 I doesn't do anything. If I want to open a .py file with IDLE, it doesn't do nothing.

I have read 5 similar topics around here but neither one solved this problem.

Any thoughts?

Can't even run it on VScode, gives the following error

    from .cv2 import *
ImportError: numpy.core.multiarray failed to import

Package Version


DateTime 4.3 numpy 1.19.3 opencv-python 4.5.1.48 pip 21.0.1 pytz 2021.1 setuptools 49.2.1 XlsxWriter 1.3.7 zope.interface 5.2.0

question from:https://stackoverflow.com/questions/66059301/python-3-8-3-9-idle-wont-run

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I have uninstalled and deleted all the remaining python folders from AppData and Program Files and also uninstalled Anaconda3.

Freshly installed 3.9 and now I can open the IDLE and from it go to File>Open.

It's kinda' sad I can't use to "Edit with IDLE" anymore, but at least now the IDLE works(somehow).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...