[Theory] How to speed up python code execution / pypy vs GPU

Chris Angelico rosuav at gmail.com
Wed Nov 9 19:34:02 EST 2016


On Thu, Nov 10, 2016 at 8:35 AM,  <jladasky at itu.edu> wrote:
> I don't actually use pip much myself, I use Synaptic Package Manager.  Unless you need a package from the PSF repository that Canonical doesn't have, Synaptic should be fine for you.  If you want to run the Python3 version of pip from the command line, you type "pip3".
>
> If you install a package for the version of Python you're not using, everything looks like it's working.  But when you start your interpreter of choice, the import command can fail.

Which is why the recommended way to install stuff is:

python -m pip install numpy

or

python3 -m pip install numpy

That way, you know for certain that when you run "python" or
"python3", you get the thing you just installed.

ChrisA



More information about the Python-list mailing list