简体   繁体   中英

Despite uninstalling NumPy, importing NumPy does not produce a ModuleNotFoundError. Why?

I completely uninstalled the NumPy package from my computer. Afterward, I attempted several NumPy functions, and as expected, they all produced errors.

Interestingly, though, the import statement doesn't produce an error.

How come I do not get "ModuleNotFoundError" when I attempt to import NumPy in this situation?

Just checked the paths, appears homebrew doesn't fully uninstall NumPy. It leaves a few remnant folders named "numpy", which appears to be causing this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM