简体   繁体   English

Errno 13 权限被拒绝 'C:\\Program files\\Python310\\CS project.py'

[英]Errno 13 Permission denied 'C:\\Program files\\Python310\\CS project.py'

I am unable to understand what the problem is, some parts of the code are working but some parts were not so to check it I intentionally put errors but the interpreter is not raising any issues.我无法理解问题出在哪里,代码的某些部分正在工作,但有些部分没有检查它我故意输入错误但解释器没有提出任何问题。 I recently reinstalled python as I was facing issues while installing modules and now I think while sorting out that problem I did something that is the reason for this problem.我最近重新安装了 python,因为我在安装模块时遇到了问题,现在我想在解决这个问题时我做了一些导致这个问题的事情。 there is division by zero which should raise an exception but it does not除以零应该引发异常,但它不会

It seems like you are trying to run your python script from a folder that prohibits access from a non-administrator.您似乎正在尝试从禁止非管理员访问的文件夹中运行 python 脚本。 Either move your script CS project.py to a folder that you can run (for example, your Desktop), or run your cmd (or powershell ) with Administrator permissions.将脚本CS project.py移动到您可以运行的文件夹(例如,您的桌面),或使用管理员权限运行cmd (或powershell )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python:ImportError: cannot import name 'Mapping' from 'collections' (C:\Program Files\Python310\lib\collections\__init__.py) - Python : ImportError: cannot import name 'Mapping' from 'collections' (C:\Program Files\Python310\lib\collections\__init__.py) PermissionError: [Errno 13] 权限被拒绝:'C:\\\\Program Files\\\\Python35\\\\Lib\\\\site-packages\\\\six.py' - PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Python35\\Lib\\site-packages\\six.py' PermissionError:[Errno 13] python 项目中的权限被拒绝 - PermissionError: [Errno 13] Permission denied in python project Python - [Errno 13] 权限被拒绝 - Python - [Errno 13] Permission denied Errno 13 权限被拒绝 Python - Errno 13 Permission denied Python Python:[Errno 13] 权限被拒绝 - Python: [Errno 13] Permission Denied Python [Errno 13] 权限被拒绝: - Python [Errno 13] Permission denied: Python PermissionError:[Errno 13]尝试将txt保存到程序文件时权限被拒绝(x86) - Python PermissionError: [Errno 13] Permission denied when trying to save txt to program files(x86) xp上的python:errno 13权限被拒绝-文件夹中文件数的限制? - python on xp: errno 13 permission denied - limits to number of files in folder? Python-尝试复制文件时Errno 13权限被拒绝 - Python - Errno 13 Permission denied when trying to copy files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM