简体   繁体   English

麻烦安装matplotlib python吗? 视窗

[英]trouble installing matplotlib python? WINDOWS

So I used pip to install matplotlib module through command line in windows, but when I then try to import the module in python, it says no module is found. 所以我用pip在Windows中通过命令行安装matplotlib模块,但是当我尝试在python中导入模块时,它说没有找到模块。

How do I fix this? 我该如何解决? When I've tried to install it again, it says the module exists and can be found through my files. 当我尝试再次安装它时,它表示该模块存在,并且可以通过我的文件找到。 However python doesn't seem to be able to link to it to import it? 但是python似乎无法链接到它以导入它?

If you're on Python 2.7, you will want to read the following document at it details how to install MySQLdb1 on the various platforms: 如果您使用的是Python 2.7,则需要阅读以下文档,其中详细介绍了如何在各种平台上安装MySQLdb1:

See the INSTALL file specifically. 具体请参阅INSTALL文件。

Note that this is kind of a legacy module. 请注意,这是一种旧模块。 If you want something that works in Python 3, you might want to check out moist . 如果您想要某些可在Python 3中运行的工具,则可能需要签出moist

There is also PyMySQL , which is compatible with both Python 2.6+ and 3.3+ and it can be installed with pip: 还有PyMySQL ,它与Python 2.6+和3.3+兼容,并且可以通过pip安装:

pip install PyMySQL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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