python 安装相关命令-汇总

Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation。保留所有权利。

C:\Windows\system32>python -m pip install --upgrade pip
Collecting pip
  Using cached pip-9.0.1-py2.py3-none-any.whl
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

C:\Windows\system32>pip install pymongo
Collecting pymongo
  Using cached pymongo-3.4.0-cp27-none-win_amd64.whl
Installing collected packages: pymongo
Successfully installed pymongo-3.4.0

C:\Windows\system32>pip install pymysql
Collecting pymysql
  Downloading PyMySQL-0.7.10-py2.py3-none-any.whl (78kB)
    100% |████████████████████████████████| 81kB 188kB/s
Installing collected packages: pymysql
Successfully installed pymysql-0.7.10

C:\Windows\system32>pip install pyparsing
Collecting pyparsing
  Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
    100% |████████████████████████████████| 61kB 367kB/s
Installing collected packages: pyparsing
Successfully installed pyparsing-2.2.0

C:\Windows\system32>pip uninstall pyparsing
Uninstalling pyparsing-2.2.0:
  c:\program files\miniconda2\lib\site-packages\pyparsing-2.2.0.dist-info\description.rst
  c:\program files\miniconda2\lib\site-packages\pyparsing-2.2.0.dist-info\installer
  c:\program files\miniconda2\lib\site-packages\pyparsing-2.2.0.dist-info\metadata
  c:\program files\miniconda2\lib\site-packages\pyparsing-2.2.0.dist-info\metadata.json
  c:\program files\miniconda2\lib\site-packages\pyparsing-2.2.0.dist-info\record
  c:\program files\miniconda2\lib\site-packages\pyparsing-2.2.0.dist-info\top_level.txt
  c:\program files\miniconda2\lib\site-packages\pyparsing-2.2.0.dist-info\wheel
  c:\program files\miniconda2\lib\site-packages\pyparsing.py
  c:\program files\miniconda2\lib\site-packages\pyparsing.pyc
Proceed (y/n)? y
  Successfully uninstalled pyparsing-2.2.0

C:\Windows\system32>pip install pyparsing==2.1.4
Collecting pyparsing==2.1.4
  Downloading pyparsing-2.1.4-py2.py3-none-any.whl (40kB)
    100% |████████████████████████████████| 40kB 201kB/s
Installing collected packages: pyparsing
Successfully installed pyparsing-2.1.4

C:\Windows\system32>python
Python 2.7.12 |Continuum Analytics, Inc.| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> exit()

C:\Windows\system32>python3
‘python3‘ 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Windows\system32>conda search --full --name python

CondaEnvironmentNotFoundError: Could not find environment: python .
You can list all discoverable environments with `conda info --envs`.

C:\Windows\system32>conda info -e
# conda environments:
#
root                  *  C:\Program Files\Miniconda2

C:\Windows\system32>python --version
Python 2.7.12 :: Continuum Analytics, Inc.

C:\Windows\system32>conda create -n snakes python=3
Fetching package metadata .........
Solving package specifications: ..........

Package plan for installation in environment C:\Program Files\Miniconda2\envs\snakes:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    vs2015_runtime-14.0.25123  |                0         1.9 MB
    python-3.6.1               |                0        31.5 MB
    setuptools-27.2.0          |           py36_1         758 KB
    wheel-0.29.0               |           py36_0         129 KB
    pip-9.0.1                  |           py36_1         1.7 MB
    ------------------------------------------------------------
                                           Total:        35.9 MB

The following NEW packages will be INSTALLED:

    pip:            9.0.1-py36_1
    python:         3.6.1-0
    setuptools:     27.2.0-py36_1
    vs2015_runtime: 14.0.25123-0
    wheel:          0.29.0-py36_0

Proceed ([y]/n)? y

Fetching packages ...
vs2015_runtime 100% |###############################| Time: 0:00:04 440.02 kB/s
python-3.6.1-0 100% |###############################| Time: 0:00:48 679.67 kB/s
setuptools-27. 100% |###############################| Time: 0:00:01 552.33 kB/s
wheel-0.29.0-p 100% |###############################| Time: 0:00:00 176.50 kB/s
pip-9.0.1-py36 100% |###############################| Time: 0:00:01   1.11 MB/s
Extracting packages ...
[      COMPLETE      ]|##################################################| 100%
Linking packages ...
[      COMPLETE      ]|##################################################| 100%
#
# To activate this environment, use:
# > activate snakes
#
# To deactivate this environment, use:
# > deactivate snakes
#
# * for power-users using bash, you must source
#

C:\Windows\system32>python --version
Python 2.7.12 :: Continuum Analytics, Inc.

C:\Windows\system32>activate snakes

(snakes) C:\Windows\system32>python --version
Python 3.6.1 :: Continuum Analytics, Inc.

(snakes) C:\Windows\system32>python
Python 3.6.1 |Continuum Analytics, Inc.| (default, Mar 22 2017, 20:11:04) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymongo
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named ‘pymongo‘
>>> exit
Use exit() or Ctrl-Z plus Return to exit
>>> exit()

(snakes) C:\Windows\system32>pip install pymongo
Collecting pymongo
  Downloading pymongo-3.4.0.tar.gz (583kB)
    100% |████████████████████████████████| 583kB 137kB/s
Building wheels for collected packages: pymongo
  Running setup.py bdist_wheel for pymongo ... done
  Stored in directory: C:\Users\yzh\AppData\Local\pip\Cache\wheels\41\12\7b\8a5763b32bbea5d7bca33dfbdb4740541ef17f5ca3f22b3be9
Successfully built pymongo
Installing collected packages: pymongo
Successfully installed pymongo-3.4.0

(snakes) C:\Windows\system32>pip install pymysql
Collecting pymysql
  Using cached PyMySQL-0.7.10-py2.py3-none-any.whl
Installing collected packages: pymysql
Successfully installed pymysql-0.7.10

(snakes) C:\Windows\system32>pip install pyparsing
Collecting pyparsing
  Using cached pyparsing-2.2.0-py2.py3-none-any.whl
Installing collected packages: pyparsing
Successfully installed pyparsing-2.2.0

(snakes) C:\Windows\system32>python
Python 3.6.1 |Continuum Analytics, Inc.| (default, Mar 22 2017, 20:11:04) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyparsing import unichr
>>> exit()

(snakes) C:\Windows\system32>pip install past
Collecting past
  Could not find a version that satisfies the requirement past (from versions: )
No matching distribution found for past

(snakes) C:\Windows\system32>pip install webencodings
Collecting webencodings
  Downloading webencodings-0.5.tar.gz
Building wheels for collected packages: webencodings
  Running setup.py bdist_wheel for webencodings ... done
  Stored in directory: C:\Users\yzh\AppData\Local\pip\Cache\wheels\0a\73\c2\1dcc99951b6aeac495e7695505d1837616ca194938f07d1d7b
Successfully built webencodings
Installing collected packages: webencodings
Successfully installed webencodings-0.5

(snakes) C:\Windows\system32>pip install six
Collecting six
  Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six
Successfully installed six-1.10.0

(snakes) C:\Windows\system32>anaconda search -t conda past
‘anaconda‘ 不是内部或外部命令,也不是可运行的程序
或批处理文件。

(snakes) C:\Windows\system32>conda search -t conda past
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: unrecognized arguments: -t past

(snakes) C:\Windows\system32>disactivate snakes
‘disactivate‘ 不是内部或外部命令,也不是可运行的程序
或批处理文件。

(snakes) C:\Windows\system32>python
Python 3.6.1 |Continuum Analytics, Inc.| (default, Mar 22 2017, 20:11:04) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

(snakes) C:\Windows\system32>pip install paste
Collecting paste
  Downloading Paste-2.0.3-py34-none-any.whl (625kB)
    100% |████████████████████████████████| 634kB 549kB/s
Requirement already satisfied: six>=1.4.0 in c:\program files\miniconda2\envs\snakes\lib\site-packages (from paste)
Installing collected packages: paste
Successfully installed paste-2.0.3

(snakes) C:\Windows\system32>pip install past
Collecting past
  Could not find a version that satisfies the requirement past (from versions: )
No matching distribution found for past

(snakes) C:\Windows\system32>pip install future
Collecting future
  Downloading future-0.16.0.tar.gz (824kB)
    100% |████████████████████████████████| 829kB 427kB/s
Building wheels for collected packages: future
  Running setup.py bdist_wheel for future ... done
  Stored in directory: C:\Users\yzh\AppData\Local\pip\Cache\wheels\c2\50\7c\0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a
Successfully built future
Installing collected packages: future
Successfully installed future-0.16.0

(snakes) C:\Windows\system32>

  

时间: 2024-10-12 22:43:37

python 安装相关命令-汇总的相关文章

Python安装相关

Python安装相关 第一步:下载Python安装包 在Python的官网 www.python.org 中找到最新版本的Python安装包,点击进行下载,请注意,当你的电脑是32位的机器,请选择32位的安装包,如果是64位的,请选择64位的安装包: 第二步:安装 A.双击下载好的安装包,弹出如下界面: 这里要注意的是,将python加入到windows的环境变量中,如果忘记打勾,则需要手工加到环境变量中:在这里我选择的是自定义安装,点击"自定义安装"进行下一步操作: B.进入到下一步

linux 系统性能调优 相关命令汇总

linux 系统性能调优 相关命令汇总: 1. ps:查看系统中当前有哪些进程在运行 常用命令有ps aux  | grep  -i  mysql http://www.cnblogs.com/peida/archive/2012/12/19/2824418.html 2. top:动态显示各个程序对cpu,内存的占用,以及负载的情况 http://www.cnblogs.com/ggjucheng/archive/2012/01/08/2316399.html 3. io的总体负载,进程的io

python安装模块方法汇总

方法一: 原文地址: http://blog.csdn.net/cighao/article/details/47860041 在 windows 系统下,只需要输入命令 pip install requests ,即可安装. 在 Linux 系统下,只需要输入命令 sudo  pip install requests ,即可安装. 注:关于Python第三方库的安装最好少使用 easy_install,因为 easy_install 只能安装不能卸载,如果要卸载需要进入到 python 的安装

linux(centos) 项目部署阶段相关命令汇总

1.ssh免密码登陆 主要命令 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys-->添加公钥 service sshd restart -->重启ssh服务 参考链接: http://jingyan.baidu.com/article/2fb0ba4043124a00f2ec5f0f.html 2.查看系统相关信息: uname -a 查看OS详细信息 file /bin/ls 显示系统程序信息,就能看出多少位 获得机器字长 getc

linux上python安装相关

1,安装python 3.6#如果首先编译安装python3.6 ,可能出现输入python3.6 之后,方向键失效.需要安装 readline 库.sudo apt-get install libreadline-dev ■安装pythonwget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz xz -d Python-3.6.1.tar.xz tar -xvf Python-3.6.1.tar (如果是Python-3

linux 平台安装相关命令

centos 上的yum: sudo yum search xxx       sudo yum install xxx 通常会出现一个lib的安装包在各个linux系统上名称不一样,如libgif 在ubuntu上 sudo apt-get install libgif-dev 就能安装,在sudo yum install libgif-dev 会找不到. 这个时候,运行下 yum search gif 就知道对应的报名了.

linux 进程管理相关命令汇总

## processes 进程管理 ##ps查看当前系统执行的线程列表,进行瞬间状态,不是连续状态,连续状态需要使用top名称查看 更多常用参数请使用 man ps查看 ps ##显示所有进程详细信息 ps aux ##-u 显示某个用户的进程列表 ps -f -u www-data ## -C 通过名字或者命令搜索进程 ps -C apache2 ## --sort 根据进程cpu使用率降序排列,查看前5个进程 -pcpu表示降序 pcpu升序 ps aux --sort=-pcpu | he

Selenese 命令清单 - wait相关命令

点击链接加入群[悦分享测试联盟]:https://jq.qq.com/?_wv=1027&k=5DiePik 简介 Selenium为用户提供了大量的Selenese命令,可以非常方便的为用户编写脚本实用,其中实际场景运用需要的并不多,为了能更好的利用这些命令,我对几乎所有Selenese命令做了分类,分类内容如下: 包含操作页面元素常用命令,以及一些不常用到的高级使用命令 对鼠标键盘事件控制命令 wait相关命令 veriy相关命令 assert相关命令 store存储器相关命令 Part I

Linux环境下非root用户安装Python及相关库

以前在使用python的时候,都是使用root用户安装好的全局python,现在,因为root用户安装的Python版本太低,同时自己没有root权限去对全局Python升级,所以要在非root用户下安装自己指定的Python.因此,就重新整理了一份如何在Linux环境下使用非root用户安装python及其相关的库,以备不时之需. 安装python python版本库https://www.python.org/ftp/python/,此处我选择2.7.5版本的,在安装python的时候,使用