May-01-2017, 05:53 AM
Mind showing the full traceback? I'm on 3.6, so I can't replicate exactly what you're on, but it seems to work on my end.
D:\Projects\playground>python Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from importlib import invalidate_caches >>> invalidate_caches() >>> help(invalidate_caches) Help on function invalidate_caches in module importlib: invalidate_caches() Call the invalidate_caches() method on all meta path finders stored in sys.meta_path (where implemented). >>>