Installation of Canopy + Pandas on Win10

Installation Packages

01 Canopy (also known as EPDFree) for Python 2.7 by Enthought Scientific Computing Solutions

    canopy-2.1.3.win-x86_64-cp27.msi

    https://store.enthought.com/downloads/

02 distribute-0.6.28.tar.gz01

    http://pan.baidu.com/s/1eQmBRc2

03 matplotlib-2.0.2-cp27-cp27m-win_amd64.whl

    http://www/lfd.uci.edu/~gohlke.pythonlibs/

 

Installation Steps

01 Install Canopy

02 Add the below paths to the environment variables --> System variables --> Path

    > C:\Users\I******\AppData\Local\Enthought\Canopy\App\appdata\canopy-2.1.3.3542.win-x86_64 

    > C:\Users\I******\AppData\Local\Enthought\Canopy\App\appdata\canopy-2.1.3.3542.win-x86_64\Scripts

03 [Test] win+r: CMD

1 C:\Users\I******>python
2 Enthought Canopy Python 2.7.13 | 64-bit | (default, Mar 30 2017, 11:20:05) [MSC v.1500 64 bit (AMD64)] on win32
3 Type "help", "copyright", "credits" or "license" for more information. 

 04 Extract distribute-0.6.28.tar.gz; Direct to the folder in CMD

1 > cd Downloads/distribute-0.6.28/distribute-0.6.28
2 > python distribute_setup.py

05 Install pandas02

1 easy_install pandas

Error

1 Unable to find vcvarsall.bat

Solution03

a. Download VC++ for Python 2.7 and install

b. Open the file C:\Users\I******\AppData\Local\Enthought\Canopy\App\appdata\canopy-2.1.3.3542.win-x86_64\Lib\distutils\msvc9compiler.py

c. Search for "vcvarsall = find_vcvarsall(version)" 

d. Add a line after it (*pay attention to the indent): vcvarsall = "C:/Users/I******/AppData/Local/Programs/Common/Microsoft/Visual C++ for Python/9.0/vcvarsall.bat"

Retry

1 easy_install pandas

Error

1 Access is denied: 'c:\\users\\i******\\appdata\\local\\temp\\easy_install-djpjyq\\pandas-0.20.3\\numpy-1.13.1-py2.7-win-amd64.egg\\numpy\\core\\multiarray.pyd'

Solution

a. De-activate McAfee

Retry with Administrator

1 easy_install pandas

Success! 

06 Install matplotlib

1 easy_install matplotlib

Error

1 Setup script exited with 1

Solution

Try with pip

a. Manually install pip

1 easy_install.exe pip

b. Install matplotlib using pip (putting the wheel file under path: C:\Users\I******\)  

1 pip install matplotlib-2.0.2-cp27-cp27m-win_amd64.whl

07. [Test]

1 ipython --pylab
2 import numpy as np
3 import pandas as pd
4 import matplotlib.pyplot as plt
5 
6 In [1]: plot(arange(10))
7 Out[1]: [<matplotlib.lines.Line2D at 0x872e940>]

 

Reference

01 http://jingyan.baidu.com/article/5d6edee2f445fc99eadeeccd.html

02 http://blog.csdn.net/u013457065/article/details/49557943

03 https://www.youtube.com/watch?v=s7n0OwL2jE4

 

posted @ 2017-07-25 09:33  PrinceMay  阅读(327)  评论(0编辑  收藏  举报