当我尝试在pycharm上的python中调试我的“ Hello World”程序时,收到以下错误消息,并且尚未在线找到任何解决方案。当我尝试运行代码时也会发生此问题。
这就是错误提示
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\pydev\pydevd.py", line 1758, in <module>
main()
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\pydev\pydevd.py", line 1752, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\pydev\pydevd.py", line 1147, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.2\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 11, in execfile
stream = tokenize.open(file) # @UndefinedVariable
File "C:\Users\arz\AppData\Local\Programs\Python\Python37\lib\tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
PermissionError: [Errno 13] Permission denied: 'D:/python'
我找到了一个建议以管理员身份运行pycharm的线程,但对我来说却什么也没有改变。
print("hello world")
答案 0 :(得分:0)
尝试更改您的.py名称,然后尝试在C驱动器中重新安装pycharm。简单的方法。