pyinstaller PermissionError: [Errno 13] Permission denied:

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:

  1. Make sure that you have administrative privileges on your system. You can run the command as an administrator or switch to an administrator account.

  2. 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.

  3. 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.

  4. 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.

pyinstaller PermissionError: [Errno 13] Permission denied:_第1张图片

你可能感兴趣的:(python)