用anaconda的pip安裝第三方python包的日誌

用anaconda的pip安裝第三方python包的日誌

啓動anaconda命令窗口:

開始> 全部程序> anaconda> anaconda prompt
會獲得兩行提示:
Deactivating environment "d:\Anaconda2"...
Activating environment "d:\Anaconda2"...html

安裝tushare包

  • 在anaconda 命令窗口裏: 輸入 pip install tushare
  • 安裝提示信息爲:

[Anaconda2] C:\Documents and Settings\Administrator>pip install tusharepython

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 Settings\Administrator\Local Settings\Application Data\pip\Cache\wheels\2c\55\89\d4a3052f45104e809b0fd3a546ba6eff89ded4446dcfb0c9a1
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.windows

[Anaconda2] C:\Documents and Settings\Administrator>python3.x

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:\Anaconda2\python.exe -u -c "import setuptools,
tokenize;file='c:\docume~1\admini~1\locals~1\temp\pip-build-3etaep\ta
-lib\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().re
place('\r\n', '\n'), file, 'exec'))" bdist_wheel -d c:\docume~1\admini~1\loc
als~1\temp\tmphu1uk_pip-wheel- --python-tag cp27:
c:\docume~1\admini~1\locals~1\temp\pip-build-3etaep\ta-lib\setup.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 build\lib.win32-2.7
creating build\lib.win32-2.7\talib
copying talib__init__.py -> build\lib.win32-2.7\talib
copying talib\deprecated.py -> build\lib.win32-2.7\talib
copying talib\test_abstract.py -> build\lib.win32-2.7\talib
copying talib\test_data.py -> build\lib.win32-2.7\talib
copying talib\test_func.py -> build\lib.win32-2.7\talib
running build_ext
skipping 'talib\common.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/vcpython27api


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:\Anaconda2\python.exe -u -c "
import setuptools, tokenize;
file='c:\docume~1\admini~1\locals~1\temp\pip-build-3etaep\talib\setup.py'; exec(compile(getattr(tokenize, 'open', open)
(file).read().replace('\r\n', '\n'), file, 'exec'))"
install --record c:\docume~1\admini~1\locals~1\temp\pip-3un8gp-record\install-record.txt --single-version-externally-managed --compile: c:\docume~1\admini~1\locals~1\temp\pip-build-3etaep\ta-lib\setup.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 build\lib.win32-2.7
creating build\lib.win32-2.7\talib
copying talib__init__.py -> build\lib.win32-2.7\talib
copying talib\deprecated.py -> build\lib.win32-2.7\talib
copying talib\test_abstract.py -> build\lib.win32-2.7\talib
copying talib\test_data.py -> build\lib.win32-2.7\talib
copying talib\test_func.py -> build\lib.win32-2.7\talib
running build_ext
skipping 'talib\common.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/vcpython27antd


Command "d:\Anaconda2\python.exe -u -c "import setuptools, tokenize;file='c:
\docume~1\admini~1\locals~1\temp\pip-build-3etaep\ta-lib\setup.py';exec(c
ompile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), _
_file__, 'exec'))" install --record c:\docume~1\admini~1\locals~1\temp\pip-3un8g
p-record\install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in c:\docume~1\admini~1\locals~1\temp\pip-build-3etaep\ta-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.app

[Anaconda2] C:\Documents and Settings\Administrator>ide

正確安裝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)。ui

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\ta_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 Settings\Administrator>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 Settings\Administrator>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 Settings\Administrator>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:\anaconda2\lib\site-packages\setuptools-20.3-py2.7.egg (from pyinstaller)

Requirement already satisfied: future in d:\anaconda2\lib\site-packages (from pyinstaller)
Building wheels for collected packages: pyinstaller
Running setup.py bdist_wheel for pyinstaller ... done
Stored in directory: C:\Documents and Settings\Administrator\Local Settings\Application Data\pip\Cache\wheels\0b\d9\68
\d6ac226a577f9a16459d486c5fe1a71cdc5846dd6515a13b0f
Successfully built pyinstaller
Installing collected packages: pyinstaller
Successfully installed pyinstaller-3.2.1

quantdigger @2017/3/27

[Anaconda2] C:\Documents and Settings\Administrator>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:\anaconda2\lib\site-packages (from quantdigger)
Requirement already satisfied: ta-lib>=0.4.8 in d:\anaconda2\lib\site-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:\anaconda2\lib\site-packages (from quantdigger)
Requirement already satisfied: pandas>=0.17.1 in d:\anaconda2\lib\site-packages (from quantdigger)
Requirement already satisfied: python-dateutil>=2.4.2 in d:\anaconda2\lib\site-packages (from quantdigger)
Requirement already satisfied: numpy==1.10.4 in d:\anaconda2\lib\site-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:\anaconda2\lib\site-packages (from matplotlib>=1.5.1->quantdigger)
Requirement already satisfied: cycler in d:\anaconda2\lib\site-packages (from matplotlib>=1.5.1->quantdigger)
Requirement already satisfied: pyparsing!=2.0.4,>=1.5.6 in d:\anaconda2\lib\site-packages (from matplotlib>=1.5.1->quant
digger)
Requirement already satisfied: six>=1.5 in d:\anaconda2\lib\site-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 Settings\Administrator\Local Settings\Application Data\pip\Cache\wheels\df\ee\3e
\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 Settings\Administrator>

相關文章
相關標籤/搜索