Matplotlib ImportError - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Matplotlib ImportError (/thread-19097.html) |
Matplotlib ImportError - robertinoc - Jun-13-2019 Hi! I am a beginner in Python. I installed the Python extension MatPlotLib, but it does not work. When I write 'import matplotlib' Python displays the error "ImportError: DLL load failed: impossible to find the specified module. Thanks for your help!! Robertino, Italy RE: Matplotlib ImportError - Larz60+ - Jun-13-2019 A few questions:
RE: Matplotlib ImportError - robertinoc - Jun-14-2019 Hi! I use Thonny that it has the Python included (version 3.7.2 32 bit) and I downloaded the maplotlib extensions with Thonny. I also tried to installed Matplotlib with the command pip install matplotlib, but it does not work. Excuse for my English, my native Language is Italian. Today, I installed Visual Studio Community with Python support and Python 3.7.3 32 bit and 64 bit version and I installed matplotlib inside Visual Studio. But also with VS, the library matplotlib does not work, the message here is Now, if I use Thonny matplotlib is working . Instead in VS is not working.Bye! RE: Matplotlib ImportError - Larz60+ - Jun-14-2019 The standard way to load matplotlib is with pip from command line: pip install matplotlibIf installed in this manner, should work with any IDE. You may have more than one version of python installed. Make sure you have installed to the proper version for pip: pip -V and also check pip3 -V RE: Matplotlib ImportError - snippsat - Jun-14-2019 (Jun-14-2019, 07:38 AM)robertinoc Wrote: Now, if I use Thonny matplotlib is working . Instead in VS is not working.Thonny comes with python. Thonny Wrote:Easy to get started. Thonny comes with Python 3.7 built in Quote:Today, I installed Visual Studio CommunityIt would have been better to install VS Code Look at VS Code from start In VS Code you can point to the Python 3.7 interpreter in Thonny,then VS Code will use that version and matplotlib will work. Can also install Python 3.6/3.7 and pip installation under Windows. The have that as Windows main version in Path(work from anywhere in cmd or better cmder). Then in look like this. C:\Users\Tom λ python -V Python 3.7.3 C:\Users\Tom λ pip -V pip 19.1.1 from c:\python37\lib\site-packages\pip (python 3.7) # Now matplotlib will be install to version pip point to over C:\Users\Tom λ pip install matplotlib --upgrade Collecting matplotlib Downloading ........ Successfully installed matplotlib-3.1.0In VS Code is easy to switch interpreter look at tutorial,so now should matplotlib work in both version. |