Home > database >  I am facing problem while installing black formatter in vs code
I am facing problem while installing black formatter in vs code

Time:05-04

WARNING: The scripts black.exe and blackd.exe are installed in 'C:\Users\hp\AppData\Local\Programs\Python\Python310\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

need help?

CodePudding user response:

Could you try the following:

-click on the windows startmenu button and type in "Edit environment variables for your account" In the window that shows up select "path" and click on the edit button.

-In the list that show up then add the "C:\Users\hp\AppData\Local\Programs\Python\Python310\Scripts" path and click OK to save the changes.

After having done that close all your VS code instances and try the formatter again, it should have now have added those scripts to your PATH variable.

  • Related