Python Data Analysis EPD

Source: Internet
Author: User

Reference book "Technical analysis using Python: Python for Data analyses"

The official upgraded the EPD (https://www.enthought.com/products/canopy/package-index/) to Canopy (https://www.enthought.com/products/ canopy/package-index/), in order to be as consistent with the book as possible, only to other places to find out

Download the offline image http://mirror.seas.harvard.edu/epd/enthought.com/repo/free/from here

$wget http://mirror.seas.harvard.edu/epd/download.enthought.com/epd_free/epd_free-7.2-2-rh5-x86_64.sh

Installation: http://courses.cs.washington.edu/courses/cse140/12su/computing-resources.html

#chmod u+x epd_free-7.2-2-rh5-x86_64.sh

$.epd_free-7.2-2-rh5-x86_64.sh

First let you accept the agreement, and then specify the installation path, such as ~/EPD will automatically install dependencies as follows:

Do you approve the license terms? [Yes|no]
[No] >>> Yes

Epd_free'll be installed to this location:
/home/jp/downloads/epd_free-7.2-2-rh5-x86_64

* Press Enter to accept this location
* Press CTRL-C to abort
* or specify an alternate location. Please ensure this your location
Contains only ASCII letters, numbers and the following punctuation
Chars: '. ', ' _ ', '-'

[/home/jp/downloads/epd_free-7.2-2-rh5-x86_64] >>>/HOME/JP/EPD
Installing TO/HOME/JP/EPD ... please wait
Fixing RPATH ...
Trying to run Python interpreter:
/home/jp/epd
Compiling all Python modules ...
Extracting: '. Zips/special.zip '
Bootstrapping:local-repo/enstaller-4.4.1-1.egg
322 KB [... ...] ..... ..... ..... .......................................
Appinst-2.1.0-1.egg [Installing]
107 KB [... ...] ..... ..... ..... .......................................
Cloud-2.3.9-1.egg [Installing]
837 KB [... ...] ..... ..... ..... .......................................
Configobj-4.7.2-2.egg [Installing]
244 KB [... ...] ..... ..... ..... .......................................
Distribute-0.6.24-1.egg [Installing]
1.45 MB [... ...] ..... ..... ...... ......................................
Etsproxy-0.1.1-1.egg [Installing]
1.03 MB [... ...] ..... ..... ...... ......................................
Examples-7.2-0.egg [Installing]
3.38 MB [... ...] ..... ..... ...... ......................................
Freetype-2.4.4-1.egg [Installing]
2.78 MB [... ...] ..... ..... ...... ......................................
Idle-2.7.2-2.egg [Installing]
KB [... .... ... ... ...] ... ..... ..... .........-... and ... and ... and .....-... and .....?????????????
Ipython-0.12-1.egg [Installing]
7.27 MB [... ...] ..... ..... ...... ......................................
Nose-1.1.2-1.egg [Installing]
916 KB [... ...] ..... ..... ..... .......................................
Numpy-1.6.1-0.egg [Installing]
26.24 MB [... ...] ..... ..... ...... ......................................
Pil-1.1.7-3.egg [Installing]
1.44 MB [... ...] ..... ..... ...... ......................................
Pyaudio-0.2.4-1.egg [Installing]
218 KB [... ...] ..... ..... ..... .......................................
Pyface-4.1.0-1.egg [Installing]
3.52 MB [... ...] ..... ..... ...... ......................................
Pyglet-1.1.4-2.egg [Installing]
5.67 MB [... ...] ..... ..... ...... ......................................
Python_dateutil-1.5-2.egg [Installing]
399 KB [... ...] ..... ..... ..... .......................................
Pytz-2011n-1.egg [Installing]
913 KB [... ...] ..... ..... ..... .......................................
Pyzmq-2.1.11-1.egg [Installing]
1.47 MB [... ...] ..... ..... ...... ......................................
Scipy-0.10.0-0.egg [Installing]
107.06 MB [... ...] ..... ..... ...... ......................................
Tornado-2.1.1-1.egg [Installing]
1.34 MB [... ...] ..... ..... ...... ......................................
Traits-4.1.0-1.egg [Installing]
2.24 MB [... ...] ..... ..... ...... ......................................
Traitsui-4.1.0-1.egg [Installing]
4.43 MB [... ...] ..... ..... ...... ......................................
Wxpython-2.8.10.1-3.egg [Installing]
58.68 MB [... ...] ..... ..... ...... ......................................
Apptools-4.0.1-1.egg [Installing]
1.68 MB [... ...] ..... ..... ...... ......................................
Enable-4.1.0-1.egg [Installing]
5.31 MB [... ...] ..... ..... ...... ......................................
Matplotlib-1.1.0-1.egg [Installing]
13.27 MB [... ...] ..... ..... ...... ......................................
Chaco-4.1.0-1.egg [Installing]
2.90 MB [... ...] ..... ..... ...... ......................................
Epd-7.2-0.egg [Installing]
5 KB [... ... ... ... ... ...] .... ... ..... ....... .................................
Pythondochtml-2.7.2.egg [Installing]
28.83 MB [... ...] ..... ..... ...... ......................................
Done.

As the last step, you should edit your. BASHRC or prepend
The Epd_free install path:

/home/jp/epd/bin

Thank for installing epd_free!

Then install Padas

#sudo Easy_install Pandas

Error 1:

Pkg_resources. Versionconflict: (NumPy 1.6.1 (/home/jp/epd/lib/python2.7/site-packages), Requirement.parse (' numpy>=1.7.0 '))

$sudo pip Install--upgrade numpy>=1.7.0

Error 2:

# Extra Version Check in case wxversion lacks alreadyimportederror;
Importerror:matplotlib backend_wx and Backend_wxagg require WxPython >=2.8
#sudo pip Install--upgrade wxpython>=2.8

Http://stackoverflow.com/questions/5121574/wxpython-import-error
$sudo apt-get Install libjpeg62

Error 3:

Unicodedecodeerror: ' ASCII ' codec can ' t decode byte 0xe2 in position 72:ordinal not in range (128)
$sudo apt-get Install Libevent-dev Python-dev

Installing Pandas

#sudo Easy_install Pandas
GCC compiles, time will be longer

After the installation is complete,

$ipython--pylab

Import Pandas

Error 4:importerror:no module named pandas

Check the next reason, pandas indeed has been installed, but not installed under Epd/bin, Epd/bin under the Python version is 2.7.2

The python that comes with the system is 2.7.6, and the result is that the pandas is loaded into the Python site-packages that comes with the system. Now get stuck in this one step, first record here to say.

Python Data Analysis EPD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.