Python matplotlib importError in command prompt but not in python shell
This question already has an answer here:
You still have a file called new.py on your desktop. Somewhere along in the chain of import statements, there is an "import new", which finds your new.py, and everything goes wrong:
File "C:Python27libsite-packagesmatplotlibcbook.py", line 34, in <module>
import new
File "C:UsersRobertDesktopnew.py", line 1, in <module>
import matplotlib.pyplot
Remove or rename your new.py as well as any corresponding new.pyc that may have been created, and try again, or try again from a different working directory.
链接地址: http://www.djcxy.com/p/46716.html下一篇: 在命令提示符下使用Python matplotlib importError,但不在python shell中