pyinstaller 安装报错
pyinstaller PermissionError: [Errno 13] Permission denied: 'C:\\Users\\ZHAN\\Desktop\\build\\data2pic1\\data2pic1.exe.notanexecutable'
解决方法:
关闭杀毒软件和windows相关防护设置
These errors occur when the user running the command doesn’t have sufficient permissions to execute it. This can happen due to various reasons such as file system permissions, user account settings, or anti-virus software blocking the execution.
To solve the issue, you can try the following:
Make sure that you have administrative privileges on your system. You can run the command as an administrator or switch to an administrator account.
Check the file system permissions of the file you are trying to execute. Make sure the file has execute permission for the user running the command. You can use the chmod command to change the file permissions.
Make sure that your antivirus or security software is not blocking the execution of the file. You may need to whitelist the file or disable the antivirus temporarily.
Try running the command from a different location. Sometimes, executing a file from a specific directory requires special permissions.
I hope this helps. Let me know if you have any other questions.