pyt hon vs pyt hon by defaultubuntu uses python when it installs python packages such as pythonpip if you wish to use python insteadyou should use the python prefix instead of python for instancesudo apt-get install python -pip python -dev when you're installing packages using pipkeep in mind that by defaultit targets python to target python you should use pip sudo pip install tensorflow-gpu installing the python scientific suite if you use macwe recommend that you install the python scientific suite via anacondawhich you can get at www continuum io/downloads note that this won' include hdf and graphvizwhich you have to install manually following are the steps for manual installation of the python scientific suite on ubuntu install blas library (openblasin this case)to ensure that you can run fast tensor operations on your cpusudo apt-get install build-essential cmake git unzip pkg-config libopenblas-dev liblapack-dev install the python scientific suitenumpyscipy and matplotlib this is necessary in order to perform any kind of machine learning or scientific computing in pythonregardless of whether you're doing deep learningsudo apt-get install python-numpy python-scipy pythonmatplotlib python-yaml install hdf this libraryoriginally developed by nasastores large files of numeric data in an efficient binary format it will allow you to save your keras models to disk quickly and efficientlysudo apt-get install libhdf -serial-dev python- py install graphviz and pydot-ngtwo packages that will let you visualize keras models they aren' necessary to run kerasso you could skip this step and install these packages when you need them here are the commandssudo apt-get install graphviz sudo pip install pydot-ng install additional packages that are used in some of our code examplessudo apt-get install python-opencv licensed to