How to force recompile of py source in site-packages?
<p>If I edit source of an installed package and delete the .pyc when I restart an app that uses it there is no new pyc generated in place indicating there is a cache elsewhere.</p>

<p>How do I force the update to source to be taken into account?</p>

<p>Go to the directory of the <code>.py</code> file and run <code>python -m compileall .</code>.</p>

python python-2.7 package