Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Pip can't create or remove compiled (.pyo) source files #2209
What's expected is an option something like easy_install has to control the optimization level for compiling installed .py files to .pyo files, especially when installing from Wheels. For example,
A bigger issue is that if .pyo files are created by some other means, such as executing a module in optimized mode (e.g.
would uninstall .py, .pyc (as done now) and .pyo files.
See this discussion on PIP's mailing list.
I have also run into this problem, specifically with upgrading Django. If I do not remove the .pyo files, it gives me this error:
If I remove the pyo files (with
As far as I can tell, this is because