top of page
Search
rheybtvkomp

Download matplotlib for python 2.7.9: The best library for static, animated, and interactive visuali



The Windows wheels (*.whl) on the PyPI download page do not contain test dataor example code.If you want to try the many demos that come in the matplotlib sourcedistribution, download the *.tar.gz file and look in theexamples subdirectory.To run the test suite, copy the lib\matplotlib\tests andlib\mpl_toolkits\tests directories from the sourcedistribution to sys.prefix\Lib\site-packages\matplotlib andsys.prefix\Lib\site-packages\mpl_toolkits respectively, andinstall nose, mock, Pillow, MiKTeX, GhostScript,ffmpeg, avconv, mencoder, ImageMagick, and Inkscape.


  • This next part is optional. We can crate an alias command for the above command to connect to the EC2 instance, so that we don't have to remember or look up the command each time we wish to connect. To do so, in the command line type nano /.bash_aliases. This will open up a file containing the alias commands you already have. If you haven't created aliases before, this wil be blank. To this file, add the linealias ec2-connect="ssh -i "whatever_your_key_pair_is.pem" ubuntu@xx.xx.xxx.x"Of course, you can name your alias something other than ec2-connect if you like. Type Ctrl+x to exit, and type 'y' and then Enter to save these changes. Then to activate this alias, in the command line type source /.bashrc, and hit Enter.Now connect to the EC2 instance by typing either the ssh -i... command or the alias you created, if you did create one. You will be asked if it is okay to connet to the IP address if your EC2 instance; agree to proceed. You will then be connected with the EC2 instance. To disconnect, hit Ctrl+d. We can see that if we type python and hit enter, we open up a Python terminal. On the images currently hosted, the default Python version is 2.7.6. For the project that I am using my EC2 instance for, I attempted to run a script that employed some things from the urllib3 module. When I did this, I received an Insecure Platform Warning. In the documentation about this warning, it is strongly recommended to upgrade to Python 2.7.9 or greater. In the next steps, we will detail how to get Python 2.7.9 set up in a virtual environment, and install all the relevant modules. First, we will install Python 2.7.9 Update and upgrade:sudo apt-get update && sudo apt-get upgrade

  • Install some dependencies:sudo apt-get install build-essentialsudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

  • Create a Downloads directory, then change to that directory and download the files for Python 2.7.9mkdir Downloadscd Downloadswget -2.7.9.tgz

  • Extract the files, and go into the directory Python-2.7.9 that was createdtar -xvf Python-2.7.9.tgzcd Python-2.7.9

  • Install Python./configure make sudo make install

  • Return to the main directory and update and upgrade againcd sudo apt-get update && sudo apt-get upgradeAt some point during the upgrade process, a menu will appear, asking about which version of a file to use. Select the option that says something to the effect of 'use package maintainer's version'. Now that Python 2.7.9 is installed, it can be called by typing python2.7 into the command line

  • Before we install virtualenv, we will install some prerequisites.

  • sudo apt-get install build-essential python2.7-dev python-dev python-pip liblapack-dev libblas-dev libatlas-base-dev gfortran libpng-dev libjpeg8-dev libfreetype6-dev libqt4-core libqt4-gui libqt4-dev libzmq-devFor this part of the tutorial, I am taking the above command from this article.Install virtualenvsudo pip install virtualenv

  • Now that we have virtualenv installed, we will create a virtual environment to keep our Python 2.7.9 stuff in--and to keep that stuff separate from the Python 2.7.6 stuff. First, make a folder to hold all of our virtual environments that we wish to create in the future. This step is not essential, but is common practice. We will call the folder virtualenvs.mkdir virtualenvs

  • Make a virtual environment where the default is Python 2.7.9. The information for a virtual environment will be stored in a directory that we will store in the virtualenvs directory. We will call the directory for the virtual environment we are about to create py-2-7-9_scipy_stack. In order to identify what kind of versions and packages we will have in this virtualenv.virtualenv -p python2.7 virtualenvs/py-2-7-9_scipy_stack

  • Move into the directory where the virtualenv information we just created is stored, and then activate the virtualenvcd virtualenvs/py-2-7-9_scipy_stack source bin/activate If we wish to deactivate the virtualenv, use the command deactivate.

  • Now that we are our virtual environment, we can begin to install the Python packages we want. The main one we want is SciPy, and since that one is trickier to install than the others, we will detail how to install it. First, SciPy requires numpy, so install numpy; this will take some time.pip install numpyNext, we wish to install the SciPy module. But because this module is so large, and we are using a micro EC2 instance, we run into problems with memory if we simply try pip install scipy. To overcome this, we will add some swap space to our memory. We will add a 2048kb swap file. The following instructions come from here. First, create the swap filesudo dd if=/dev/zero of=/swapfile bs=1024 count=2048k Next prepare the swap file by creating a linux swap area sudo mkswap /swapfile Then activate the swap filesudo swapon /swapfileThis file will be available until you log out. In order to make the swap permanent, we need to add the following to the fstab file. Open the fstab filesudo nano /etc/fstabPaste in the following line/swapfile none swap sw 0 0Next we will set the swappiness to 10echo 10 sudo tee /proc/sys/vm/swappiness echo vm.swappiness = 10 sudo tee -a /etc/sysctl.confFinally, we correct the permissions on the swap file by using the following commandssudo chown root:root /swapfile sudo chmod 0600 /swapfile

  • Now we can finally proceed with installing SciPy and other modules. Below, I have code to install SciPy and a number of other modules. It should be noted that SciPy takes quite some time to install, as do the pandas and scikit-learn modules.pip install scipypip install matplotlibpip install pandaspip install scikit-learnpip install ipythonpip install pyzmqpip install pygmentspip install patsypip install statsmodels

  • That's it! Whenver you want to use Python 2.7.9 on your EC2 instance, activate the virtual environment as we did above, and you will have available Python 2.7.9 as well as any modules you installed while active in that virtual environment. If you would like to use a different version of Python, say Python 3.x, on your EC2 instance, you can follow largely the same steps. Instead of installing Python 2.7.9, you will have to install Python 3.x. In step 7, you must change the package python2.7-dev to the package python3.4-dev; or 3.3 if you desire. Finally, when you create your virtualev, instead of passing the argument -p python2.7, you will pass -p python3.4.




download matplotlib for python 2.7.9




The RaDMaX program has been developed on MS Windows using python 2.7.11, Matplotlib 1.5.1 and WxPython 3.0.2.0.It has been tested on several GNU/Linux distributions including Debian 8 and Kubuntu 15.04, using python 2.7.9, Matplotlib 1.4.2 and WxPython 3.0.1.1.It also has been tested on a MacMini running OSX Yosemite 10.10.5 with python 2.7.11, Matplotlib 1.5.1 and WxPython 3.0.2.0.


Select the Add button on the toolbar (outlined below), enter the folder where you expanded the downloaded symbols (which is where python.pdb is located, such as c:\python34\Symbols, shown below), and select OK.


During a debugging session, Visual Studio might also prompt you for the location of a source file for the Python interpreter. If you've downloaded source files (from python.org/downloads/, for example), then you of course can point to them as well.


10.3 does not use 2.7.9. For this reason I can tell you've installed your own Python. If you install your own, you need to have made sure you've installed numpy, matplotlib and a couple more packages that escape me right now.


This will automatically download the latest distributionfrom its home at , and install it.It will also automatically install the recommended third-party packages(numpy, pillow, matplotlib, and ipython) if you do not alreadyhave them. (If you do not want this to happen, you can explicitly preventit by adding the --no-dependencies flag.)


phablet@ubuntu-phablet:$ libertine-container-manager install-package -i myapps -p /home/phablet/Downloads/freecad.debHit vivid InReleaseHit vivid/main armhf PackagesHit vivid/main Translation-enHit vivid InReleaseHit vivid-updates InReleaseHit vivid/main armhf PackagesHit vivid/universe armhf PackagesHit vivid/multiverse armhf PackagesHit vivid/main Translation-enHit vivid/main Translation-en_GBHit vivid/multiverse Translation-enHit vivid/multiverse Translation-en_GBHit vivid/universe Translation-enHit vivid/universe Translation-en_GBHit vivid-updates/main armhf PackagesHit vivid-updates/universe armhf PackagesHit vivid-updates/multiverse armhf PackagesHit vivid-updates/main Translation-enHit vivid-updates/multiverse Translation-enHit vivid-updates/universe Translation-enReading package lists... Donels: cannot access /home/phablet: No such file or directorySelecting previously unselected package freecad.(Reading database ... 26321 files and directories currently installed.)Preparing to unpack /tmp/freecad.deb ...Unpacking freecad (0.16+dfsg2-2) ...dpkg: dependency problems prevent configuration of freecad: freecad depends on libsoqt4-20 (>= 1.6); however: Package libsoqt4-20 is not installed. freecad depends on python-collada; however: Package python-collada is not installed. freecad depends on python-matplotlib; however: Package python-matplotlib is not installed. freecad depends on python-pivy (>= 0.5.0v609hg-2); however: Package python-pivy is not installed. freecad depends on python-ply; however: Package python-ply is not installed. freecad depends on python-pyside; however: Package python-pyside is not installed. freecad depends on pyside-tools; however: Package pyside-tools is not installed. freecad depends on python:any (>= 2.6.6-7); however: freecad depends on python2.7; however: Package python2.7 is not installed. freecad depends on libboost-atomic1.62.0; however: Package libboost-atomic1.62.0 is not installed. freecad depends on libboost-chrono1.62.0; however: Package libboost-chrono1.62.0 is not installed. freecadpkg: error processing package freecad (--install): dependency problems - leaving unconfiguredProcessing triggers for mime-support (3.58ubuntu1) ...Process... 2ff7e9595c


0 views0 comments

Recent Posts

See All

Comments


bottom of page