You can do it manually with the next command:
find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
This will remove all .pyc
and .pyo
files as well as __pycache__
directories recursively starting from the current directory.
More Related Contents:
- How can I use functools.singledispatch with instance methods?
- Python 3.4.0 with MySQL database
- Getting value of enum on string conversion
- Changing one dict changes all dicts in a list of dicts [duplicate]
- How do you change the value of one attribute by changing the value of another? (dependent attributes)
- A simple maths operation on a CSV column using python [closed]
- Why am getting an "elif" syntax error showing invalid syntax in python [closed]
- Why doesn’t this python code run infinite times? [closed]
- Error “Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)”
- Why is the id of a Python class not unique when called quickly?
- Freezing/Hanging tkinter GUI in waiting for the thread to complete
- How can I connect to MySQL in Python 3 on Windows?
- ‘str’ object has no attribute ‘decode’. Python 3 error?
- Using multiple Python engines (32Bit/64bit and 2.7/3.5)
- Importing class from another file [duplicate]
- What is the meaning of “Failed building wheel for X” in pip install?
- When should iteritems() be used instead of items()?
- Clear QLineEdit on click event
- How do I convert a string into an f-string?
- Why doesn’t str.translate work in Python 3?
- Understand Python swapping: why is a, b = b, a not always equivalent to b, a = a, b?
- How do you use subprocess.check_output() in Python?
- pip no longer working after update error ‘module’ object is not callable
- What is the correct syntax for ‘else if’?
- Find Out If a Function has been Called
- TypeError: ufunc ‘add’ did not contain a loop with signature matching types
- AttributeError: module ‘numpy’ has no attribute ‘__version__’
- Install mod_wsgi on Ubuntu with Python 3.6, Apache 2.4, and Django 1.11
- Python double underscore mangling
- Convert binary string to bytearray in Python 3