Search code examples
pythonmacospy2app

py2app: error: [Errno 17] File exists: when creating the app


I'm trying to make a MacOS executable with py2app. I'm having the exact same issue in py2app Error 17 - File exists when running py2app for the first time

But the solution there won't work for since I don't have .tml file. How can I downgrade setup tools?


Solution

  • According to this post, you can try the following: pip install --force-reinstall -v

    For example: pip install --force-reinstall -v "MySQL_python==1.2.2"

    What these options mean:

    • --force-reinstall is an option to reinstall all packages even if they are already up-to-date.
    • -v is for verbose. You can combine for even more verbosity (i.e. -vv) up to 3 times (e.g. --force-reinstall -vvv).

    Unfortunately I have no experience with py2app, but this question seems to be more about pip versioning rather than py2app configuration.