python--windows安装

官方网站下载中心

打开官网下载:

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

下载后,放到一个适当的目录下。进行安装,按照指示下一步,下一步安装完毕。

配置环境变量:

如图所示:

2.x 是 Python 2.7.12

3.x 是 Python 3.5.2

验证是否安装正确:

C:\Users\Syaving>python3
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

C:\Users\Syaving>python2
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
Use exit() or Ctrl-Z plus Return to exit
>>>
C:\Users\Syaving>pip3

Usage:
  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>pip2

Usage:
  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.
时间: 2024-12-29 04:15:56

python--windows安装的相关文章

python Windows安装pip

windows系统先安装python解释器: windows版本exe安装文件下载地址:https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi Linux版本exe安装文件下载地址https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz 安装下一步下一步知道完成 配置环境变量 然后在cmd命令行下键入 python -V   就能得到python的版本信息了 安装完成 安装p

python windows 安装paramiko报错

Windows下安装Anaconda,成功安装了paramiko,但是新建paramiko项目时,直接报错.错误信息:Unknown exception: DLL load failed: 操作系统无法运行 %1. from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: DLL load failed: 操作系统无法运行 %1. 解决方式:看错误明显是OpenSSL库加载不成功,:把C:\Windows\Sy

python windows 安装gensim

安装gensim要确定numpy和scipy安装 再安装gensim

windows安装python包管理工具pip

windows安装python包管理工具pip     pip 是一个Python包管理工具,主要是用于安装 PyPI 上的软件包,可以替代 easy_install 工具. 一.前期准备 首先确认windows机器上面是否已经安装好了python.在cmd中输入python --version和python看看是否有反应 如上面所示,表示已经在windows平台上面搭建好了python环境. 二.下载安装 1.到官网去https://pypi.python.org/pypi/pip#downl

windows安装使用python、环境设置、多python版本的切换、pyserial与多版本python安装、windows命令行下切换目录

1.windows下安装python 官网下载安装即可 2.安装后的环境设置 我的电脑--属性--高级--设置path的地方添加python安装目录,如C:\Python27;C:\Python33 3.多版本的切换三种方法: 1)修改C:\Python27;C:\Python33内python.exe为python2.7.exe.python3.3.exe,即可区别开来 2)path路径中去除不用的,保留要用的 3)切换到想使用版本的python.exe目录下使用python解释器 4.下载好

windows 新版xgboost Python包安装教程 win10 64

windows 新版xgboost Python包安装教程 win10 64 第一次写教程,不妥之处望大家海涵 O(∩_∩)O! 写这篇文章的起因是男票让我帮他装xgb,不幸让我装好了~~ 他说这个好麻烦,装好了可以写一篇博客了,so~ 其实我基本完全是按照下面这位大虾的步骤做的(),下面给出链接: 64位win10下安装xgboost python包的教程:http://www.th7.cn/system/win/201603/157092.shtm 下面讲一下我的步骤(简化补充版,详情请参考

Python pip windows安装

参考页面: [1] : https://pip.pypa.io/en/latest/installing.html [2] : http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows/ 最方便的方法就是去下载:https://raw.github.com/pypa/pip/master/contrib/get-pip.py,实际上是一个base64编码的zip包+自解压python程序 放到python安装

.windows安装使用这些偏底层的Python扩展太

.windows安装使用这些偏底层的Python扩展太不爽了,怎么彻底解决 error: Unable to find vcvarsall.bat呢? 1.不要按网上说的,安装MinGW,然后在“..python安装路径...\Lib\distutils”下新建一个文件distutils.cfg,在这文件里面指定编译器为mingw32 如: [build] compiler=mingw32 原因是什么,可以百度一下mingw是什么,毕竟不是GCC,又不如VC接windows的地气,编译出来的东西

Python: Windows下pip的安装及简单应用

pip是一个用来管理和下载Python包的软件.通过pip,可以很容易就联网下载并安装需要的Python包到正确的位置,是一个很有用的软件. 由于自学的Python,刚开始需要下载第三方包的时候,总是被各种格式搞得头大.询问别人,别人就告诉个pip的命令,都说用这个就很方便就可以下载安装的.当时完全不知所云啊,因为看的Python入门那本书里压根没提过pip这个玩意.于是就百度了一下,终于知道了pip的基本用法. 写下此文,一方面是自己做个整理笔记,以备以后查看.另一方面,也希望有的初学Pyth

windows 下 python 在安装模块的时候出现”unable to find vcvarsall.bat“如何解决?

最近打算用python,写一个链接linux,执行命令并获取的数据的小工具. 在安装SSH模块时,出现错误了,“unable to find vcvarsall.bat”,在网上搜索到了一个解决方案,参考地址:http://www.crifan.com/python_mmseg_error_unable_to_find_vcvarsall_bat/ Python 2.7 会搜索 Visual Studio 2008.如果你电脑上没有这个版本的话,比如只有:1.Visual Studio 2010