Asked By – SalientGreen
What is the BEST way to clear out all the
__pycache__ folders and
.pyc/.pyo files from a python3 project. I have seen multiple users suggest the
pyclean script bundled with Debian, but this does not remove the folders. I want a simple way to clean up the project before pushing the files to my DVS.
Now we will see solution for issue: Python3 project remove __pycache__ folders and .pyc files
I found the answer myself when I mistyped pyclean as pycclean:
No command 'pycclean' found, did you mean: Command 'py3clean' from package 'python3-minimal' (main) Command 'pyclean' from package 'python-minimal' (main) pycclean: command not found
py3clean . cleaned it up very nicely.