• 用anaconda的pip安装第三方python包的日志


    用anaconda的pip安装第三方python包的日志

    启动anaconda命令窗口:

    开始> 所有程序> anaconda> anaconda prompt
    会得到两行提示:
    Deactivating environment "d:Anaconda2"...
    Activating environment "d:Anaconda2"...

    安装tushare包

    • 在anaconda 命令窗口里: 输入 pip install tushare
    • 安装提示信息为:

    [Anaconda2] C:Documents and SettingsAdministrator>pip install tushare

    Collecting tushare
    Downloading tushare-0.5.0.zip (89kB)
    45% |██████████████▊ | 40kB 292kB/s eta 0:00:
    57% |██████████████████▍ | 51kB 328kB/s eta 0
    68% |██████████████████████ | 61kB 393kB/s et
    80% |█████████████████████████▊ | 71kB 328kB/
    91% |█████████████████████████████▍ | 81kB 35
    100% |████████████████████████████████| 92kB
    280kB/s
    Building wheels for collected packages: tushare
    Running setup.py bdist_wheel for tushare ... done
    Stored in directory: C:Documents and SettingsAdministratorLocal SettingsApplication DatapipCachewheels2c5589d4a3052f45104e809b0fd3a546ba6eff89ded4446dcfb0c9a1
    Successfully built tushare
    Installing collected packages: tushare
    Successfully installed tushare-0.5.0
    You are using pip version 8.1.1, however version 8.1.2 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.

    [Anaconda2] C:Documents and SettingsAdministrator>

    pip install talib

    Collecting ta-lib
    Downloading TA-Lib-0.4.9.zip (527kB)
    34% |███████████▏ | 184kB 149kB/s eta 0:00:03
    36% |███████████▉ | 194kB 149kB/s eta 0:00:03
    38% |████████████▍ | 204kB 148kB/s eta 0:00:0
    40% |█████████████ | 215kB 148kB/s eta 0:00:0
    42% |█████████████▋ | 225kB 192kB/s eta 0:00:
    44% |██████████████▎ | 235kB 145kB/s eta 0:00
    46% |███████████████ | 245kB 145kB/s eta 0:00
    48% |███████████████▌ | 256kB 192kB/s eta 0:0
    50% |████████████████▏ | 266kB 145kB/s eta 0:
    52% |████████████████▊ | 276kB 285kB/s eta 0:
    54% |█████████████████▍ | 286kB 285kB/s eta 0
    56% |██████████████████ | 296kB 273kB/s eta 0
    58% |██████████████████▋ | 307kB 285kB/s eta
    60% |███████████████████▎ | 317kB 198kB/s eta
    62% |███████████████████▉ | 327kB 198kB/s eta
    64% |████████████████████▌ | 337kB 285kB/s et
    65% |█████████████████████ | 348kB 198kB/s et
    67% |█████████████████████▊ | 358kB 192kB/s e
    69% |██████████████████████▍ | 368kB 284kB/s
    71% |███████████████████████ | 378kB 273kB/s
    73% |███████████████████████▋ | 389kB 273kB/s
    75% |████████████████████████▏ | 399kB 198kB/
    77% |████████████████████████▉ | 409kB 198kB/
    79% |█████████████████████████▌ | 419kB 273kB
    81% |██████████████████████████ | 430kB 192kB
    83% |██████████████████████████▊ | 440kB 198k
    85% |███████████████████████████▎ | 450kB 273
    87% |████████████████████████████ | 460kB 204
    89% |████████████████████████████▌ | 471kB 20
    91% |█████████████████████████████▏ | 481kB 2
    93% |█████████████████████████████▉ | 491kB 2
    95% |██████████████████████████████▍ | 501kB
    96% |███████████████████████████████ | 512kB
    98% |███████████████████████████████▋| 522kB
    100% |████████████████████████████████| 532kB
    198kB/s
    Building wheels for collected packages: ta-lib
    Running setup.py bdist_wheel for ta-lib ... error
    Complete output from command d:Anaconda2python.exe -u -c "import setuptools,
    tokenize;file='c:docume1admini1locals~1 emppip-build-3etaep a
    -libsetup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().re
    place(' ', ' '), file, 'exec'))" bdist_wheel -d c:docume1admini1loc
    als~1 emp mphu1uk_pip-wheel- --python-tag cp27:
    c:docume1admini1locals~1 emppip-build-3etaep a-libsetup.py:77:
    UserWarning:
    Cannot find ta-lib library, installation may fail.
    warnings.warn('Cannot find ta-lib library, installation may fail.')
    running bdist_wheel
    running build
    running build_py
    creating build
    creating buildlib.win32-2.7
    creating buildlib.win32-2.7 alib
    copying talib_init_.py -> buildlib.win32-2.7 alib
    copying talibdeprecated.py -> buildlib.win32-2.7 alib
    copying talib est_abstract.py -> buildlib.win32-2.7 alib
    copying talib est_data.py -> buildlib.win32-2.7 alib
    copying talib est_func.py -> buildlib.win32-2.7 alib
    running build_ext
    skipping 'talibcommon.c' Cython extension (up-to-date)
    building 'talib.common' extension
    error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27


    Failed building wheel for ta-lib
    Running setup.py clean for ta-lib
    Failed to build ta-lib
    Installing collected packages: ta-lib
    Running setup.py install for ta-lib ... error
    Complete output from command
    d:Anaconda2python.exe -u -c "
    import setuptools, tokenize;
    file='c:docume1admini1locals~1 emppip-build-3etaep alibsetup.py'; exec(compile(getattr(tokenize, 'open', open)
    (file).read().replace(' ', ' '), file, 'exec'))"
    install --record c:docume1admini1locals~1 emppip-3un8gp-recordinstall-record.txt --single-version-externally-managed --compile: c:docume1admini1locals~1 emppip-build-3etaep a-libsetup.py:77:
    User Warning: Cannot find ta-lib library, installation may fail.
    warnings.warn('Cannot find ta-lib library, installation may fail.')
    running install
    running build
    running build_py
    creating build
    creating buildlib.win32-2.7
    creating buildlib.win32-2.7 alib
    copying talib_init_.py -> buildlib.win32-2.7 alib
    copying talibdeprecated.py -> buildlib.win32-2.7 alib
    copying talib est_abstract.py -> buildlib.win32-2.7 alib
    copying talib est_data.py -> buildlib.win32-2.7 alib
    copying talib est_func.py -> buildlib.win32-2.7 alib
    running build_ext
    skipping 'talibcommon.c' Cython extension (up-to-date)
    building 'talib.common' extension
    error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).
    Get it from http://aka.ms/vcpython27


    Command "d:Anaconda2python.exe -u -c "import setuptools, tokenize;file='c:
    docume1admini1locals~1 emppip-build-3etaep a-libsetup.py';exec(c
    ompile(getattr(tokenize, 'open', open)(file).read().replace(' ', ' '), _
    file_, 'exec'))" install --record c:docume1admini1locals~1 emppip-3un8g
    p-recordinstall-record.txt --single-version-externally-managed --compile"
    failed with error code 1 in c:docume1admini1locals~1 emppip-build-3etaep a-lib
    You are using pip version 8.1.1, however version 8.1.2 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.

    [Anaconda2] C:Documents and SettingsAdministrator>

    正确安装talib的步骤

    http://bbs.pinggu.org/thread-4154495-1-1.html
    我不清楚下面这个能否解决你的问题。我是在安装TA-Lib的时候,从官网talib org下载的怎么都不能装,用anaconda装也不行。最后是从这个帖子,发现好像官网的是32位,我们要下64位的:
    http://stackoverflow.com/questions/28103010/error-installing-ta-lib-for-anaconda
    找到这个link:
    http://www.lfd.uci.edu/~gohlke/pythonlibs/
    从那边下载的这个:
    TA_Lib-0.4.9-cp35-none-win_amd64.whl
    然后我是在windows的cmd里面pip install TA_Lib-0.4.9-cp35-none-win_amd64.whl这样解决的。
    btw我的环境是64位的win10,直接安装的Anaconda(python3.x)。

    1. 从加州大学的python扩展库里下载适合的轮子

    2. pip install TA_Lib-0.4.9-cp27-none-win32.whl

    Unofficial Windows Binaries for Python Extension Packages

    下载 TA_Lib-0.4.9-cp27-none-win32.whl from 加州大学的python扩展库里
    有6个whl文件, 需要下载适合自己的whl文件:
    TA-Lib, a wrapper for the TA-LIB Technical Analysis Library.
    TA_Lib-0.4.9-cp27-none-win32.whl
    TA_Lib-0.4.9-cp27-none-win_amd64.whl
    TA_Lib-0.4.9-cp34-none-win32.whl
    TA_Lib-0.4.9-cp34-none-win_amd64.whl
    TA_Lib-0.4.9-cp35-none-win32.whl
    TA_Lib-0.4.9-cp35-none-win_amd64.whl
    然后在cmd窗口里安装:
    D:DB>pip install TA_Lib-0.4.9-cp27-none-win32.whl

    Processing d:db a_lib-0.4.9-cp27-none-win32.whl
    Installing collected packages: TA-Lib
    Successfully installed TA-Lib-0.4.9
    You are using pip version 8.1.1, however version 8.1.2 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.

    升级pip版本从8.1.2 到 9.0.1

    Collecting pip
    Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    35% |███████████▎ | 440kB 1.3MB/s eta 0:00:01
    35% |███████████▌ | 450kB 1.6MB/s eta 0:00:01
    36% |███████████▊ | 460kB 1.3MB/s eta 0:00:01
    37% |████████████ | 471kB 1.3MB/s eta 0:00:01
    38% |████████████▎ | 481kB 1.3MB/s eta 0:00:0
    39% |████████████▌ | 491kB 1.3MB/s eta 0:00:0
    39% |████████████▉ | 501kB 1.3MB/s eta 0:00:0
    40% |█████████████ | 512kB 1.6MB/s eta 0:00:0
    41% |█████████████▎ | 522kB 1.3MB/s eta 0:00:
    42% |█████████████▋ | 532kB 819kB/s eta 0:00:
    43% |█████████████▉ | 542kB 939kB/s eta 0:00:
    44% |██████████████ | 552kB 939kB/s eta 0:00:
    44% |██████████████▍ | 563kB 930kB/s eta 0:00
    45% |██████████████▋ | 573kB 819kB/s eta 0:00
    46% |██████████████▉ | 583kB 819kB/s eta 0:00
    47% |███████████████▏ | 593kB 726kB/s eta 0:0
    48% |███████████████▍ | 604kB 819kB/s eta 0:0
    48% |███████████████▊ | 614kB 819kB/s eta 0:0
    49% |████████████████ | 624kB 726kB/s eta 0:0
    50% |████████████████▏ | 634kB 1.1MB/s eta 0:
    51% |████████████████▌ | 645kB 930kB/s eta 0:
    52% |████████████████▊ | 655kB 819kB/s eta 0:
    53% |█████████████████ | 665kB 939kB/s eta 0:
    53% |█████████████████▎ | 675kB 930kB/s eta 0
    54% |█████████████████▌ | 686kB 1.1MB/s eta 0
    55% |█████████████████▊ | 696kB 1.1MB/s eta 0
    56% |██████████████████ | 706kB 939kB/s eta 0
    57% |██████████████████▎ | 716kB 939kB/s eta
    57% |██████████████████▌ | 727kB 1.1MB/s eta
    58% |██████████████████▉ | 737kB 939kB/s eta
    59% |███████████████████ | 747kB 1.1MB/s eta
    60% |███████████████████▎ | 757kB 1.1MB/s eta
    61% |███████████████████▋ | 768kB 930kB/s eta
    62% |███████████████████▉ | 778kB 1.1MB/s eta
    62% |████████████████████ | 788kB 939kB/s eta
    63% |████████████████████▍ | 798kB 1.1MB/s et
    64% |████████████████████▋ | 808kB 1.1MB/s et
    65% |█████████████████████ | 819kB 939kB/s et
    66% |█████████████████████▏ | 829kB 1.1MB/s e
    66% |█████████████████████▍ | 839kB 1.1MB/s e
    67% |█████████████████████▊ | 849kB 1.1MB/s e
    68% |██████████████████████ | 860kB 1.1MB/s e
    69% |██████████████████████▏ | 870kB 1.1MB/s
    70% |██████████████████████▌ | 880kB 1.1MB/s
    70% |██████████████████████▊ | 890kB 1.1MB/s
    71% |███████████████████████ | 901kB 930kB/s
    72% |███████████████████████▎ | 911kB 1.1MB/s
    73% |███████████████████████▌ | 921kB 1.1MB/s
    74% |███████████████████████▊ | 931kB 1.1MB/s
    75% |████████████████████████ | 942kB 1.1MB/s
    75% |████████████████████████▎ | 952kB 939kB/
    76% |████████████████████████▌ | 962kB 1.1MB/
    77% |████████████████████████▉ | 972kB 1.1MB/
    78% |█████████████████████████ | 983kB 1.1MB/
    79% |█████████████████████████▎ | 993kB 1.1MB
    79% |█████████████████████████▋ | 1.0MB 1.3MB
    80% |█████████████████████████▉ | 1.0MB 1.1MB
    81% |██████████████████████████▏ | 1.0MB 1.3M
    82% |██████████████████████████▍ | 1.0MB 1.1M
    83% |██████████████████████████▋ | 1.0MB 1.1M
    84% |███████████████████████████ | 1.1MB 1.3M
    84% |███████████████████████████▏ | 1.1MB 1.1
    85% |███████████████████████████▍ | 1.1MB 1.3
    86% |███████████████████████████▊ | 1.1MB 1.1
    87% |████████████████████████████ | 1.1MB 1.1
    88% |████████████████████████████▏ | 1.1MB 1.
    88% |████████████████████████████▌ | 1.1MB 1.
    89% |████████████████████████████▊ | 1.1MB 1.
    90% |█████████████████████████████ | 1.1MB 1.
    91% |█████████████████████████████▎ | 1.1MB 1
    92% |█████████████████████████████▌ | 1.2MB 1
    93% |█████████████████████████████▊ | 1.2MB 1
    93% |██████████████████████████████ | 1.2MB 1
    94% |██████████████████████████████▎ | 1.2MB
    95% |██████████████████████████████▌ | 1.2MB
    96% |██████████████████████████████▉ | 1.2MB
    97% |███████████████████████████████ | 1.2MB
    97% |███████████████████████████████▍| 1.2MB
    98% |███████████████████████████████▋| 1.2MB
    99% |███████████████████████████████▉| 1.2MB
    100% |████████████████████████████████| 1.3MB 312kB/s
    Installing collected packages: pip
    Found existing installation: pip 8.1.2
    Uninstalling pip-8.1.2:
    Successfully uninstalled pip-8.1.2
    Successfully installed pip-9.0.1

    pip install zipline

    [Anaconda2] C:Documents and SettingsAdministrator>pip install -c Quantopian zipline

    Could not open requirements file: [Errno 2] No such file or directory: 'Quantopian'

    windows用户用conda install 来安装zipline

    Install — Zipline 1.0.2 documentation http://www.zipline.io/install.html

    For windows, the easiest and best supported way to install zipline is to use Conda.

    Installing with conda

    Another way to install Zipline is via the conda package manager, which comes as part of Continuum Analytics’ Anaconda distribution.

    The primary advantage of using Conda over pip is that conda natively understands the complex binary dependencies of packages like numpy and scipy. This means that conda can install Zipline and its dependencies without requiring the use of a second tool to acquire Zipline’s non-Python dependencies.

    For instructions on how to install conda, see the Conda Installation Documentation

    Once conda has been set up you can install Zipline from our Quantopian channel:

    conda install -c Quantopian zipline

    [Anaconda2] C:Documents and SettingsAdministrator>conda install -c Quantopian zipline

    Using Anaconda Cloud api site https://api.anaconda.org
    Fetching package metadata: ......
    Solving package specifications: .........

    Package plan for installation in environment d:Anaconda2:

    The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-env-2.6.0            |                0          488 B
    python-2.7.13              |                0        22.7 MB
    logbook-0.12.5             |           py27_0         111 KB
    numpy-1.8.2                |           py27_0        15.7 MB
    pyparsing-2.0.1            |           py27_0          61 KB
    requests-2.12.4            |           py27_0         754 KB
    ruamel_yaml-0.11.14        |           py27_1         203 KB
    dateutil-2.4.1             |           py27_0         218 KB
    numexpr-2.3.1              |       np18py27_0         116 KB
    scipy-0.14.0               |       np18py27_0        33.1 MB
    ta-lib-0.4.8               |       np18py27_0         6.3 MB
    cryptography-1.4           |           py27_0         273 KB
    pandas-0.14.1              |       np18py27_0         3.7 MB
    scikit-learn-0.15.2        |       np18py27_0         3.0 MB
    matplotlib-1.4.0           |       np18py27_0        41.7 MB
    pyopenssl-16.2.0           |           py27_0          68 KB
    conda-4.3.4                |           py27_0         520 KB
    zipline-0.7.0              |       np18py27_0         241 KB
    ------------------------------------------------------------
                                           Total:       128.8 MB
    

    The following NEW packages will be INSTALLED:

    dateutil:     2.4.1-py27_0
    logbook:      0.12.5-py27_0
    ruamel_yaml:  0.11.14-py27_1
    ta-lib:       0.4.8-np18py27_0
    zipline:      0.7.0-np18py27_0
    

    The following packages will be UPDATED:

    conda:        4.0.5-py27_0       --> 4.3.4-py27_0
    conda-env:    2.4.5-py27_0       --> 2.6.0-0
    cryptography: 1.3-py27_0         --> 1.4-py27_0
    pyopenssl:    0.15.1-py27_2      --> 16.2.0-py27_0
    python:       2.7.11-4           --> 2.7.13-0
    requests:     2.9.1-py27_0       --> 2.12.4-py27_0
    

    The following packages will be DOWNGRADED:

    matplotlib:   1.5.1-np110py27_0  --> 1.4.0-np18py27_0
    numexpr:      2.5-np110py27_0    --> 2.3.1-np18py27_0
    numpy:        1.10.4-py27_0      --> 1.8.2-py27_0
    pandas:       0.18.0-np110py27_0 --> 0.14.1-np18py27_0
    pyparsing:    2.0.3-py27_0       --> 2.0.1-py27_0
    scikit-learn: 0.17.1-np110py27_0 --> 0.15.2-np18py27_0
    scipy:        0.17.0-np110py27_0 --> 0.14.0-np18py27_0
    

    Proceed ([y]/n)?y

    Fetching packages ...
    conda-env-2.6. 100% |###############################| Time: 0:00:00 0.00 B/s
    python-2.7.13- 100% |###############################| Time: 0:02:46 143.00 kB/s
    logbook-0.12.5 100% |###############################| Time: 0:00:22 4.97 kB/s
    numpy-1.8.2-py 13% |#### | Time: 0:14:15 2.55 kB/s

    pyinstaller 3.2.1 @ 2017/3

    [Anaconda2] C:Documents and SettingsAdministrator>pip install pyinstaller
    Collecting pyinstaller
    Downloading PyInstaller-3.2.1.tar.bz2 (2.4MB)
    100% |████████████████████████████████| 2.4MB 152kB/s
    Requirement already satisfied: setuptools in d:anaconda2libsite-packagessetuptools-20.3-py2.7.egg (from pyinstaller)

    Requirement already satisfied: future in d:anaconda2libsite-packages (from pyinstaller)
    Building wheels for collected packages: pyinstaller
    Running setup.py bdist_wheel for pyinstaller ... done
    Stored in directory: C:Documents and SettingsAdministratorLocal SettingsApplication DatapipCachewheelsbd968
    d6ac226a577f9a16459d486c5fe1a71cdc5846dd6515a13b0f
    Successfully built pyinstaller
    Installing collected packages: pyinstaller
    Successfully installed pyinstaller-3.2.1

    quantdigger @2017/3/27

    [Anaconda2] C:Documents and SettingsAdministrator>pip install quantdigger
    Collecting quantdigger
    Downloading QuantDigger-0.400.tar.gz (167kB)
    100% |████████████████████████████████| 174kB 284kB/s
    Requirement already satisfied: logbook>=0.12.5 in d:anaconda2libsite-packages (from quantdigger)
    Requirement already satisfied: ta-lib>=0.4.8 in d:anaconda2libsite-packages (from quantdigger)
    Collecting progressbar2>=3.6.2 (from quantdigger)
    Downloading progressbar2-3.16.0-py2.py3-none-any.whl
    Requirement already satisfied: matplotlib>=1.5.1 in d:anaconda2libsite-packages (from quantdigger)
    Requirement already satisfied: pandas>=0.17.1 in d:anaconda2libsite-packages (from quantdigger)
    Requirement already satisfied: python-dateutil>=2.4.2 in d:anaconda2libsite-packages (from quantdigger)
    Requirement already satisfied: numpy==1.10.4 in d:anaconda2libsite-packages (from quantdigger)
    Collecting python-utils>=2.0.0 (from progressbar2>=3.6.2->quantdigger)
    Downloading python_utils-2.0.1-py2.py3-none-any.whl
    Requirement already satisfied: pytz in d:anaconda2libsite-packages (from matplotlib>=1.5.1->quantdigger)
    Requirement already satisfied: cycler in d:anaconda2libsite-packages (from matplotlib>=1.5.1->quantdigger)
    Requirement already satisfied: pyparsing!=2.0.4,>=1.5.6 in d:anaconda2libsite-packages (from matplotlib>=1.5.1->quant
    digger)
    Requirement already satisfied: six>=1.5 in d:anaconda2libsite-packages (from python-dateutil>=2.4.2->quantdigger)
    Building wheels for collected packages: quantdigger
    Running setup.py bdist_wheel for quantdigger ... done
    Stored in directory: C:Documents and SettingsAdministratorLocal SettingsApplication DatapipCachewheelsdfee3e
    dd97bc47430d3be3ac19e37d02a86c353f61547b30b16da8be
    Successfully built quantdigger
    Installing collected packages: python-utils, progressbar2, quantdigger
    Successfully installed progressbar2-3.16.0 python-utils-2.0.1 quantdigger-0.400

    [Anaconda2] C:Documents and SettingsAdministrator>

  • 相关阅读:
    UEditor 在 Layer 模态框中无法使用问题
    mysql FORMAT() 格式化后的数字运算出错
    dede 对 单个 字段 编辑
    SW线路中串联1K电阻的作用
    示波器 如何用示波器正确测量电源纹波
    Excel工作表忘记密码如何破解?
    excel小技巧
    CPU核心电压与VID电压
    电容有什么作用?为什么cpu电源引脚都并联一个电容?
    APU的Vsense引脚的作用
  • 原文地址:https://www.cnblogs.com/duan-qs/p/6289339.html
Copyright © 2020-2023  润新知