I just started learning Python's libraries for data analysis (Numpy, Pandas and Matplotlib) but have already stumbled across my first problem - getting the Matplotlib to work with virtualenv
.
When working with Python I always create a new virtual environment, get my desired Python version and libraries/dependancies into this environment. This time, the course required that I use Python3, so I installed it via HomeBrew.
The challenge:
The workaround that Is supposed to be common is described at this link but I am unsure how to use this (the OSX section).
My understanding of the solution:
Questions:
Many thanks!
If you are using Python 2.x then, use these commands in virtual environment:
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
This makes the matplotlib work in the virtual environment too.
I used this steps to make the matplotlib running in the virtual environment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With