Your problem is that you use .py file as a command. You need to add python to tell which program can execute this code.
Alternatively, you can use black executable if it is installed in your python environment.

PyCharm - How to enable Black Formatting globally
python - Issue using Black formatter in PyCharm - Stack Overflow
How to add additional settings to Black formatter in pycharm - Stack Overflow
Can't get Black formatter to work
Videos
Latest version of pycharm has black formatter integrated by default. However whenever i enable it , it only applies for specific project. Whenever I open a new project , i have to re-enable it again. How to enable this across all projects ?
Your problem is that you use .py file as a command. You need to add python to tell which program can execute this code.
Alternatively, you can use black executable if it is installed in your python environment.

You have to install Black using pip install black[d] not from pycharm console in a project but at your python directory then install from Pycharm>file>settings..>plugins, (BlackConnect plugin), and it will work for sure. about trigger this on save.
Pycharm Settings

or press shift + alt + b
I have spent all night on this... Things I've tried:
pip install black
pip install black[d] #this is the BlackConnectPlugin
Set up an external tool entry
When I run black, this is the error that comes up:
I tried on my laptop, it's the same error... Please help...
silver badge if you can help me figure this out... :,
-----------------------UPDATE FRIDAY----------------------------
Selecting blackd path in Settings > Tools
When I click on the following button, the script just does nothing.
someone ... please.... help me to fix this ToT
