Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Matplotlib ImportError
#5
(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 Community
It 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.0
In VS Code is easy to switch interpreter look at tutorial,so now should matplotlib work in both version.
Reply


Messages In This Thread
Matplotlib ImportError - by robertinoc - Jun-13-2019, 05:54 AM
RE: Matplotlib ImportError - by Larz60+ - Jun-13-2019, 09:49 PM
RE: Matplotlib ImportError - by robertinoc - Jun-14-2019, 07:38 AM
RE: Matplotlib ImportError - by Larz60+ - Jun-14-2019, 08:33 AM
RE: Matplotlib ImportError - by snippsat - Jun-14-2019, 09:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Matplotlib: How do I convert Dates from Excel to use in Matplotlib JaneTan 1 3,251 Mar-11-2021, 10:52 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020