python包的安装

Microsoft Windows [版本 10.0.17134.228]

(c) 2018 Microsoft Corporation。保留所有权利。

C:UsersAdministrator>cd  AppDataLocalProgramsPython

C:UsersAdministratorAppDataLocalProgramsPython>dir

 驱动器 C 中的卷是 Windows10

 卷的序列号是 0DC3-11AB

 C:UsersAdministratorAppDataLocalProgramsPython 的目录

2018/04/29  11:26    <DIR>          .

2018/04/29  11:26    <DIR>          ..

2018/04/29  11:27    <DIR>          Python36

               0 个文件              0 字节

               3 个目录 59,411,288,064 可用字节

C:UsersAdministratorAppDataLocalProgramsPython>cd Python36

C:UsersAdministratorAppDataLocalProgramsPythonPython36>dir

 驱动器 C 中的卷是 Windows10

 卷的序列号是 0DC3-11AB

 C:UsersAdministratorAppDataLocalProgramsPythonPython36 的目录

2018/04/29  11:27    <DIR>          .

2018/04/29  11:27    <DIR>          ..

2018/04/29  11:27    <DIR>          DLLs

2018/04/29  11:27    <DIR>          Doc

2018/04/29  11:26    <DIR>          include

2018/04/29  11:27    <DIR>          Lib

2018/04/29  11:27    <DIR>          libs

2017/10/03  18:17            30,334 LICENSE.txt

2017/10/03  18:17           362,094 NEWS.txt

2017/10/03  18:15           100,504 python.exe

2017/10/03  18:12            58,520 python3.dll

2017/10/03  18:12         3,610,776 python36.dll

2017/10/03  18:15            98,968 pythonw.exe

2018/04/29  11:27    <DIR>          Scripts

2018/04/29  11:27    <DIR>          tcl

2018/04/29  11:27    <DIR>          Tools

2016/06/09  22:53            87,888 vcruntime140.dll

               7 个文件      4,349,084 字节

              10 个目录 59,411,288,064 可用字节

C:UsersAdministratorAppDataLocalProgramsPythonPython36>cd Scripts

C:UsersAdministratorAppDataLocalProgramsPythonPython36Scripts>pip install requests

Collecting requests

  Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)

    100% |████████████████████████████████| 92kB 128kB/s

Collecting certifi>=2017.4.17 (from requests)

  Downloading https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl (147kB)

    100% |████████████████████████████████| 153kB 95kB/s

Collecting idna<2.8,>=2.5 (from requests)

  Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)

    100% |████████████████████████████████| 61kB 86kB/s

Collecting chardet<3.1.0,>=3.0.2 (from requests)

  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)

    100% |████████████████████████████████| 143kB 79kB/s

Collecting urllib3<1.24,>=1.21.1 (from requests)

  Downloading https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB)

    100% |████████████████████████████████| 143kB 52kB/s

Installing collected packages: certifi, idna, chardet, urllib3, requests

Successfully installed certifi-2018.8.24 chardet-3.0.4 idna-2.7 requests-2.19.1 urllib3-1.23

You are using pip version 9.0.1, however version 18.0 is available.

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

C:UsersAdministratorAppDataLocalProgramsPythonPython36Scripts>cd /d

文件名、目录名或卷标语法不正确。

C:UsersAdministratorAppDataLocalProgramsPythonPython36Scripts>cd d

系统找不到指定的路径。

C:UsersAdministratorAppDataLocalProgramsPythonPython36Scripts>cd d c:

文件名、目录名或卷标语法不正确。

C:UsersAdministratorAppDataLocalProgramsPythonPython36Scripts>cd /d c:

c:>pip show requests

Name: requests

Version: 2.19.1

Summary: Python HTTP for Humans.

Home-page: http://python-requests.org

Author: Kenneth Reitz

Author-email: me@kennethreitz.org

License: Apache 2.0

Location: c:usersadministratorappdatalocalprogramspythonpython36libsite-packages

Requires: certifi, idna, chardet, urllib3

You are using pip version 9.0.1, however version 18.0 is available.

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

c:>pip pandas

ERROR: unknown command "pandas"

c:>pip install  pandas

Collecting pandas

  Downloading https://files.pythonhosted.org/packages/0e/67/def5bfaf4d3324fdb89048889ec523c0903c5efab1a64c8dbe0ac8eec13c/pandas-0.23.4-cp36-cp36m-win_amd64.whl (7.7MB)

    100% |████████████████████████████████| 7.7MB 56kB/s

Collecting python-dateutil>=2.5.0 (from pandas)

  Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB)

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

Collecting pytz>=2011k (from pandas)

  Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB)

    100% |████████████████████████████████| 512kB 76kB/s

Collecting numpy>=1.9.0 (from pandas)

  Downloading https://files.pythonhosted.org/packages/fb/7d/f8b97d97809f184d90faf320fa8e2e7eac994844c5e6c57adbed1283e9e9/numpy-1.15.1-cp36-none-win_amd64.whl (13.5MB)

    100% |████████████████████████████████| 13.5MB 34kB/s

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

  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl

Installing collected packages: six, python-dateutil, pytz, numpy, pandas

Successfully installed numpy-1.15.1 pandas-0.23.4 python-dateutil-2.7.3 pytz-2018.5 six-1.11.0

You are using pip version 9.0.1, however version 18.0 is available.

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

c:> pip install --upgrade pip

Collecting pip

  Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)

    100% |████████████████████████████████| 1.3MB 77kB/s

Installing collected packages: pip

  Found existing installation: pip 9.0.1

    Uninstalling pip-9.0.1:

      Successfully uninstalled pip-9.0.1

原文地址:https://www.cnblogs.com/shida-liu/p/9638810.html