no display name and no $DISPLAY environment variable ============================ @Neil's answer is one (perfectly valid!) way of doing it, but you can also simply call matplotlib.use('Agg') before importing matplotlib.pyplot, and then continue as no
standard procedure in pyCharm for creating environment when Anaconda installed Create a conda env via pyCharm open pyCharm create new project -- select Conda as New env using. Locations: ~\Anaconda_x\envs\py3env PythonVersion: python3.6 (python2.x as