mthaler / random-walks

Random walks project from Python Crash Course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

random-walks

Random Walks project from Python Crash Course

alt text

Add Matplotlib package when using PyCharm

The Random Walks app requires the Matplotlib package to be installed. If it is missing, PyCharm will show the following error:

alt text

To add the package for the Random Walks app, move the cursor to import matplotlib.pyplot as plt and press Alt-enter. The following popup menu should be shown:

alt text

To install the Matplotlib package, select Install package matplotlib. This only works when using a correctly configured virtual environment.

Installing Matplotlib

To install Matplotlib for the current user, enter the following command at a terminal prompt:

$ python -m pip install --user matplotlib

To install Matplotlib globally on Debian based systems, do:

# apt-get install python3-matplotlib

About

Random walks project from Python Crash Course


Languages

Language:Python 100.0%