

ģ) Then I found another solution: sudo apt-get install virtualenv
#HOW DO I INSTALL MATPLOTLIB FOR WINDOWS CODE#
Received errors like:Ĭommand python setup.py egg_info failed with error code 1 in /tmp/pip-build. Didn't worked out.Ģ) Used: pip3 install matplotlib or sudo pip3 install matplotlib.


Sudo find /usr | grep matplotlib /usr/lib/python3/dist-packages/matplotlibġ) I've removed matplotlib with autoremove, and tried to make it sudo apt-get install python3-matplotlib instead. As it haven't worked out, started to look for solution. I run Linux Mint 18 with preinstalled python-2.7 and python-3.5 (I use python3), before that I was installing modules with a simple sudo apt-get install method and that worked great.īefore running this the code above, I've installed matplotlib in a usual way sudo apt-get install python-matplotlib. ImportError: No module named 'matplotlib.pyplot' 'matplotlib' is not a package Here's a code: import matplotlib.pyplot as plt The command is as follows: pip install xxxxxx.whl This command needs to be in the pip directory (or add the path of pip to the system variable), pip During installation: D: \ Python27 \ Scripts directory.Have found a similar issue, however haven't found proper solution. (3) Install the whl file after installing pip, you can install the whl file through the pip command. Into the command line, and the Script file directory to the directory of the python installation folder, run easy_install pip. No install necessaryrun the TensorFlow tutorials directly in the browser with Colaboratory, a Google research project created to help disseminate machine learning education and research. The directory after setuptools installation is complete is as follows:Ĭonfigure environment variables for setuptools Processing dependencies for setuptools=0.6c11įinished processing dependencies for setuptools=0.6c11 Installed d: \python27 \lib \site-packages \setuptools-0.6c11-py2.7.egg

Installing easy_install-2.7.exe.manifest script to D: \Python27 \Scripts Installing easy_install-2.7.exe script to D: \Python27 \Scripts Installing easy_ script to D: \Python27 \Scripts Installing easy_install.exe script to D: \Python27 \Scripts Installing easy_install-script.py script to D: \Python27 \Scripts In the command line window (Internet connection required)Ĭopying setuptools-0.6c11-py2.7.egg to d: \python27 \lib \site-packagesĪdding setuptools 0.6c11 to easy-install.pth file Open, save a copy of the code on the page as ez_setup.py and execute it
#HOW DO I INSTALL MATPLOTLIB FOR WINDOWS .EXE#
exe version does not support 64-bit Windows systems, 64-bit system is recommended ez_setup.py installed automatically. The whl file needs to be completed by pip, and the installation of pip needs to install setuptools first. However, there are no exe files for dateutil and pyparsing to choose from. Some related files of Python can be downloaded from. So after installing Matplotlib, only need to install dateutil and pyparsing. After installing Matplotlib, direct use will report an error of missing dateutil and pyparsing. , the file I downloaded is matplotlib-1.3.1.win-amd64-py2.7.exe. Matplotlib is a powerful drawing tool in python. View Image Three, Matplotlib installation After the installation is complete, enter import numpy to display the following, which means that the installation is successful. numpy-MKL-1.8.0.win-amd64-py2.7.exe can be installed by clicking directly. The version corresponding to your python and operating system model. Numpy is a function library that is often used in Python and is used to operate arrays, vectors, matrices and other operations. View Image Second, the installation of Numpy If the python installation is successful, the following information will be displayed. (3) Configure the environment variables of python, and add the installation directory of python to the environment variable path.Īfter the configuration is complete, open cmd and enter python. Is very simple, as required to go all the way next to it.
