• 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:UsersI******AppDataLocalEnthoughtCanopyAppappdatacanopy-2.1.3.3542.win-x86_64 

        > C:UsersI******AppDataLocalEnthoughtCanopyAppappdatacanopy-2.1.3.3542.win-x86_64Scripts

    03 [Test] win+r: CMD

    1 C:UsersI******>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:UsersI******AppDataLocalEnthoughtCanopyAppappdatacanopy-2.1.3.3542.win-x86_64Libdistutilsmsvc9compiler.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:UsersI******)  

    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

  • 相关阅读:
    注册表修改 Devenv 默认启动 Visual Studio 版本
    python——高级特性(2)
    python——高级特性
    Hibernate—部分
    Filter—过滤器和拦截器的区别
    POST—常见的4种提交方式
    POST—GET—两种提交方式的区别
    JSON—fastJSON
    协程小示例
    协程基础
  • 原文地址:https://www.cnblogs.com/princemay/p/7232297.html
Copyright © 2020-2023  润新知