python如何安装seaborn模块_如何安装seaborn

这篇博客介绍了如何在Python环境下安装seaborn模块,包括依赖库的下载和安装过程,以及升级pip的建议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我这里可以: 我的是py3(你的是3 还是2 还是你的pip 版本低)

C:\Python3\Scripts>pip install seaborn

Collecting seaborn

Downloading https://files.pythonhosted.org/packages/a8/76/220ba4420459d9c4c9c9587c6ce607bf56c25b3d3d2de62056efe482dadc/seaborn-0.9.0-py3-none-any.whl (208kB)

100% |████████████████████████████████| 215kB 810kB/s

Collecting pandas>=0.15.2 (from seaborn)

Downloading https://files.pythonhosted.org/packages/04/8b/a1d5f257bfee6aab440e763505c65368bbf713309c9dc70ceeb8d4677c2e/pandas-0.24.2-cp37-cp37m-win32.whl (7.7MB)

100% |████████████████████████████████| 7.7MB 1.1MB/s

Collecting matplotlib>=1.4.3 (from seaborn)

Downloading https://files.pythonhosted.org/packages/76/6f/5d6b88dda698a175ef6f680ff0764cc5628f5afdd2dd6a0e2c8061cd0655/matplotlib-3.0.3-cp37-cp37m-win32.whl (8.9MB)

100% |████████████████████████████████| 8.9MB 961kB/s

Collecting numpy>=1.9.3 (from seaborn)

Downloading https://files.pythonhosted.org/packages/61/be/b4d697563d4a211596a350414a87612204a8bb987c4c1b34598cd4904f55/numpy-1.16.2-cp37-cp37m-win32.whl (10.0MB)

100% |████████████████████████████████| 10.0MB 1.0MB/s

Collecting scipy>=0.14.0 (from seaborn)

Downloading https://files.pythonhosted.org/packages/a7/cd/6b8df093ca7e7f12a66004f9edc2e2628dd4692f34cc284c874814a40e6a/scipy-1.2.1-cp37-cp37m-win32.whl (26.8MB)

100% |████████████████████████████████| 26.8MB 328kB/s

Collecting pytz>=2011k (from pandas>=0.15.2->seaborn)

Downloading https://files.pythonhosted.org/packages/61/28/1d3920e4d1d50b19bc5d24398a7cd85cc7b9a75a490570d5a30c57622d34/pytz-2018.9-py2.py3-none-any.whl (510kB)

100% |████████████████████████████████| 512kB 2.7MB/s

Collecting python-dateutil>=2.5.0 (from pandas>=0.15.2->seaborn)

Downloading https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl (226kB)

100% |████████████████████████████████| 235kB 3.5MB/s

Collecting cycler>=0.10 (from matplotlib>=1.4.3->seaborn)

Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl

Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib>=1.4.3->seaborn)

Downloading https://files.pythonhosted.org/packages/de/0a/001be530836743d8be6c2d85069f46fecf84ac6c18c7f5fb8125ee11d854/pyparsing-2.3.1-py2.py3-none-any.whl (61kB)

100% |████████████████████████████████| 71kB 1.6MB/s

Collecting kiwisolver>=1.0.1 (from matplotlib>=1.4.3->seaborn)

Downloading https://files.pythonhosted.org/packages/63/95/6e03c1e40776851eda7af2e9b014bcf510e3205033c33b604c2ee36687a1/kiwisolver-1.0.1-cp37-none-win32.whl (44kB)

100% |████████████████████████████████| 51kB 534kB/s

Collecting six>=1.5 (from python-dateutil>=2.5.0->pandas>=0.15.2->seaborn)

Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl

Requirement already satisfied: setuptools in c:\python3\lib\site-packages (from kiwisolver>=1.0.1->matplotlib>=1.4.3->seaborn) (40.6.2)

Installing collected packages: pytz, numpy, six, python-dateutil, pandas, cycler, pyparsing, kiwisolver, matplotlib, scipy, seaborn

Successfully installed cycler-0.10.0 kiwisolver-1.0.1 matplotlib-3.0.3 numpy-1.16.2 pandas-0.24.2 pyparsing-2.3.1 python-dateutil-2.8.0 pytz-2018.9 scipy-1.2.1 seaborn-0.9.0 six-1.12.0

You are using pip version 18.1, however version 19.0.3 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.

可是挺慢的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值