If you have errors with xlwings such as “xlwings.XlwingsError: Make sure to have “appscript” and “psutil”, dependencies of xlwings, installed.”, try steps below.
1. Create your project with “uv” environment. Choose “Custom environment” for Interpreter Type, “Generate new” for Environment and “uv” for Type.

2. Stop the Python Console by clicking the red square button. Or to be thorough, close your PyCharm and restart.

3. Run your code with xlwings.
Grant permissions (yes) when asked. If you did not grant the permissions (no) in previously, make sure to change settings from Mac Settings –> Privacy & Security –> Automation –> PyCharm. Then allow both options (System Events and Microsoft Excel).

If this works, you are good to go and ignore next steps.
4. If there are still different errors, remove all the spaces in your file and folder names and try again.
5. If the errors persist, repeat steps 1-4 with choosing “Conda” for Type.

End.