Search code examples
pythonc++pip

can cppclean be ran in windows?


So this is probably a very newbie question (which I am) but looking for tools for C++ code I found cppclean, so I follow the instructions on the repository cppclean but when running cppclean from a cmd terminal I get cppclean is not recognized as an internal or external command I guess I am missing some steps apart from doing pip install cppclean do I need to compile it or anything like it? I have tried to run it from the cmd and the python terminal. Is it even possible to run cppclean in windows or is it just for unix systems? Sorry if the question is too obvious but I have very little python knowledge.


Solution

  • You have to add the Python scripts path, e.g. C:\Users\USER\AppData\Local\Programs\Python\Python37-32\Scripts, to your system environment Path variable. (Replace USER with your actual user name and Python37-32 with your actual Python version). It's described here