MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/a7dcnk/python_virtual_environments_extreme_advertising/eedqxtb/?context=3
r/Python • u/ase1590 • Dec 18 '18
287 comments sorted by
View all comments
Show parent comments
3
Future me here, I was bored over a weekend and generated a pie chart in matplotlib.
literally just made a python 3.7.2 venv, then pip install matplotlib and it installed and generated my simple pie chart fine.
pip install matplotlib
1 u/[deleted] Jan 18 '19 Saved straight to disk or displayed in a window? And which OSX? Maybe mine is just too old. Which virtual environment software do you use? 1 u/ase1590 Jan 18 '19 This was not on Mac. However you shouldn't be using your system's python install.This was on Arch Linux using Python 3.7.2, using this pie chart example with matplotlib 3.0.2code runs fine and a graphical window to display the color pie chart pops up just fine.$ pythom -m venv matplottest $ cd matplottest $ source bin/activate $ pip install matplotlib $ python testplot.py 1 u/[deleted] Jan 18 '19 Oh right my point was that matplotlib is a pain in the arse on Macs because of tkinter. On Linux it has always been fine for me. → More replies (0)
1
Saved straight to disk or displayed in a window? And which OSX? Maybe mine is just too old. Which virtual environment software do you use?
1 u/ase1590 Jan 18 '19 This was not on Mac. However you shouldn't be using your system's python install.This was on Arch Linux using Python 3.7.2, using this pie chart example with matplotlib 3.0.2code runs fine and a graphical window to display the color pie chart pops up just fine.$ pythom -m venv matplottest $ cd matplottest $ source bin/activate $ pip install matplotlib $ python testplot.py 1 u/[deleted] Jan 18 '19 Oh right my point was that matplotlib is a pain in the arse on Macs because of tkinter. On Linux it has always been fine for me. → More replies (0)
This was not on Mac. However you shouldn't be using your system's python install.
This was on Arch Linux using Python 3.7.2, using this pie chart example with matplotlib 3.0.2
code runs fine and a graphical window to display the color pie chart pops up just fine.
$ pythom -m venv matplottest $ cd matplottest $ source bin/activate $ pip install matplotlib $ python testplot.py
1 u/[deleted] Jan 18 '19 Oh right my point was that matplotlib is a pain in the arse on Macs because of tkinter. On Linux it has always been fine for me. → More replies (0)
Oh right my point was that matplotlib is a pain in the arse on Macs because of tkinter. On Linux it has always been fine for me.
→ More replies (0)
3
u/ase1590 Jan 18 '19
Future me here, I was bored over a weekend and generated a pie chart in matplotlib.
literally just made a python 3.7.2 venv, then
pip install matplotliband it installed and generated my simple pie chart fine.