pip和conda pip3到底有什么不一样

用anaconda的pip安装第三方python包的日志
启动anaconda命令窗口:
开始& 所有程序& anaconda& anaconda prompt
会得到两行提示:
Deactivating environment "d:\Anaconda2"...
Activating environment "d:\Anaconda2"...
安装tushare包
在anaconda 命令窗口里: 输入 pip install tushare
安装提示信息为:
[Anaconda2] C:\Documents and Settings\Administrator&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% |█████████████████████████████▍
100% |████████████████████████████████| 92kB
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\d4ae809b0fd3a546ba6eff89ded4446dcfb0c9a1
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 Settings\Administrator&
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% |█████████████████████████████▏
93% |█████████████████████████████▉
95% |██████████████████████████████▍ | 501kB
96% |███████████████████████████████ | 512kB
98% |███████████████████████████████▋| 522kB
100% |████████████████████████████████| 532kB
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,
file='c:\docume1\admini1\locals1\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:\docume1\admini1\loc
als1\temp\tmphu1uk_pip-wheel- --python-tag cp27:
c:\docume1\admini1\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 'mon' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from
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,
file='c:\docume1\admini1\locals1\temp\pip-build-3etaep\talib\setup.py';
exec(compile(getattr(tokenize, 'open', open)
(file).read().replace('\r\n', '\n'), file, 'exec'))"
install --record c:\docume1\admini1\locals1\temp\pip-3un8gp-record\install-record.txt --single-version-externally-managed --compile: c:\docume1\admini1\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 'mon' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).
Get it from
Command "d:\Anaconda2\python.exe -u -c "import setuptools,file='c:
\docume1\admini1\locals1\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:\docume1\admini1\locals1\temp\pip-3un8g
p-record\install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in c:\docume1\admini1\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.
[Anaconda2] C:\Documents and Settings\Administrator&
正确安装talib的步骤
我不清楚下面这个能否解决你的问题。我是在安装TA-Lib的时候,从官网talib org下载的怎么都不能装,用anaconda装也不行。最后是从这个帖子,发现好像官网的是32位,我们要下64位的:
找到这个link:
从那边下载的这个:
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\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% |█████████████████████████████▎
92% |█████████████████████████████▌
93% |█████████████████████████████▊
93% |██████████████████████████████
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
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
Fetching package metadata: ......
Solving package specifications: .........
Package plan for installation in environment d:\Anaconda2:
The following packages will be downloaded:
---------------------------|-----------------
conda-env-2.6.0
python-2.7.13
logbook-0.12.5
numpy-1.8.2
pyparsing-2.0.1
requests-2.12.4
ruamel_yaml-0.11.14
dateutil-2.4.1
numexpr-2.3.1
np18py27_0
scipy-0.14.0
np18py27_0
ta-lib-0.4.8
np18py27_0
cryptography-1.4
pandas-0.14.1
np18py27_0
scikit-learn-0.15.2
np18py27_0
matplotlib-1.4.0
np18py27_0
pyopenssl-16.2.0
conda-4.3.4
zipline-0.7.0
np18py27_0
------------------------------------------------------------
The following NEW packages will be INSTALLED:
2.4.1-py27_0
0.12.5-py27_0
ruamel_yaml:
0.11.14-py27_1
0.4.8-np18py27_0
0.7.0-np18py27_0
The following packages will be UPDATED:
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
--& 2.7.13-0
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
2.5-np110py27_0
--& 2.3.1-np18py27_0
1.10.4-py27_0
--& 1.8.2-py27_0
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
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
python-2.7.13- 100% |###############################| Time: 0:02:46 143.00 kB/s
logbook-0.12.5 100% |###############################| Time: 0:00:22
numpy-1.8.2-py
| Time: 0:14:15
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
\d6ac226a577f9afe1a71cdca13b0f
Successfully built pyinstaller
Installing collected packages: pyinstaller
Successfully installed pyinstaller-3.2.1
quantdigger @
[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
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
\dd97bcac19e37d02a86c353fda8be
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&
阅读(...) 评论()随笔 - 35&
文章 - 0&评论 - 1&trackbacks - 0
查看pip版本
pip install --upgrade pip
升级最高版本
安装Pywin32
虽然写amd64 但是其实是intel也可以用的
[推荐]如果是anaconda的python ,直接跳到安装sacrapy吧.
在conda自带的cell键入:
conda install scrapy
pip和conda 的命令区别. 建议使用conda
pip install +软件名
pip install --upgrade +软件名
pip uninstall ...... 卸载
conda install + 软件名
conda 是 conda remove+ 软件名
conda 和pip 是两套软件. 有时候用一套就可以了., 以免重复安装.
阅读(...) 评论()}

我要回帖

更多关于 conda与pip的区别 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信