python--windows安裝

來源:互聯網
上載者:User

標籤:ber   官方   alternate   style   https   return   gen   about   host   

官方網站下載中心

開啟官網下載:

 https://www.python.org/downloads/windows/ 

下載後,放到一個適當的目錄下。進行安裝,按照指示下一步,下一步安裝完畢。

配置環境變數:

2.x 是 Python 2.7.12

3.x 是 Python 3.5.2

 

驗證是否安裝正確:

C:\Users\Syaving>python3Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> exit()C:\Users\Syaving>python2Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> exitUse exit() or Ctrl-Z plus Return to exit>>>

 

C:\Users\Syaving>pip3Usage:  pip <command> [options]Commands:  install                     Install packages.  download                    Download packages.  uninstall                   Uninstall packages.  freeze                      Output installed packages in requirements format.  list                        List installed packages.  show                        Show information about installed packages.  check                       Verify installed packages have compatible dependencies.  search                      Search PyPI for packages.  wheel                       Build wheels from your requirements.  hash                        Compute hashes of package archives.  completion                  A helper command used for command completion.  help                        Show help for commands.General Options:  -h, --help                  Show help.  --isolated                  Run pip in an isolated mode, ignoring                              environment variables and user configuration.  -v, --verbose               Give more output. Option is additive, and can be                              used up to 3 times.  -V, --version               Show version and exit.  -q, --quiet                 Give less output. Option is additive, and can be                              used up to 3 times (corresponding to WARNING,                              ERROR, and CRITICAL logging levels).  --log <path>                Path to a verbose appending log.  --proxy <proxy>             Specify a proxy in the form                              [user:passwd@]proxy.server:port.  --retries <retries>         Maximum number of retries each connection should                              attempt (default 5 times).  --timeout <sec>             Set the socket timeout (default 15 seconds).  --exists-action <action>    Default action when a path already exists:                              (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.  --trusted-host <hostname>   Mark this host as trusted, even though it does                              not have valid or any HTTPS.  --cert <path>               Path to alternate CA bundle.  --client-cert <path>        Path to SSL client certificate, a single file                              containing the private key and the certificate                              in PEM format.  --cache-dir <dir>           Store the cache data in <dir>.  --no-cache-dir              Disable the cache.  --disable-pip-version-check                              Don‘t periodically check PyPI to determine                              whether a new version of pip is available for                              download. Implied with --no-index.C:\Users\Syaving>pip2Usage:  pip <command> [options]Commands:  install                     Install packages.  download                    Download packages.  uninstall                   Uninstall packages.  freeze                      Output installed packages in requirements format.  list                        List installed packages.  show                        Show information about installed packages.  check                       Verify installed packages have compatible dependencies.  search                      Search PyPI for packages.  wheel                       Build wheels from your requirements.  hash                        Compute hashes of package archives.  completion                  A helper command used for command completion.  help                        Show help for commands.General Options:  -h, --help                  Show help.  --isolated                  Run pip in an isolated mode, ignoring                              environment variables and user configuration.  -v, --verbose               Give more output. Option is additive, and can be                              used up to 3 times.  -V, --version               Show version and exit.  -q, --quiet                 Give less output. Option is additive, and can be                              used up to 3 times (corresponding to WARNING,                              ERROR, and CRITICAL logging levels).  --log <path>                Path to a verbose appending log.  --proxy <proxy>             Specify a proxy in the form                              [user:passwd@]proxy.server:port.  --retries <retries>         Maximum number of retries each connection should                              attempt (default 5 times).  --timeout <sec>             Set the socket timeout (default 15 seconds).  --exists-action <action>    Default action when a path already exists:                              (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.  --trusted-host <hostname>   Mark this host as trusted, even though it does                              not have valid or any HTTPS.  --cert <path>               Path to alternate CA bundle.  --client-cert <path>        Path to SSL client certificate, a single file                              containing the private key and the certificate                              in PEM format.  --cache-dir <dir>           Store the cache data in <dir>.  --no-cache-dir              Disable the cache.  --disable-pip-version-check                              Don‘t periodically check PyPI to determine                              whether a new version of pip is available for                              download. Implied with --no-index.

 

python--windows安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.