bash: mkvirtualenv: command not found

Solution 1: For some reason, virtualenvwrapper.sh installed in /usr/bin/virtualenvwrapper.sh, instead of under /usr/local/bin. The following in my .bash_profile works… My install seems to work fine without sourcing virtualenvwrapper_bashrc Solution 2: Alternatively as mentioned below, you could leverage the chance that virtualenvwrapper.sh is already in your shell’s PATH and just issue a source `which virtualenvwrapper.sh`

Matplotlib: TypeError: can’t multiply sequence by non-int of type ‘numpy.float64’

You should make x and y numpy arrays, not lists: With this change, it produces the expected plot. If they are lists, m * x will not produce the result you expect, but an empty list. Note that m is anumpy.float64 scalar, not a standard Python float. I actually consider this a bit dubious behavior of Numpy. In normal Python, multiplying a list with an … Read more