• python 安装相关命令-汇总


    Microsoft Windows [版本 10.0.14393]
    (c) 2016 Microsoft Corporation。保留所有权利。
    
    C:Windowssystem32>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:Windowssystem32>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:Windowssystem32>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:Windowssystem32>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:Windowssystem32>pip uninstall pyparsing
    Uninstalling pyparsing-2.2.0:
      c:program filesminiconda2libsite-packagespyparsing-2.2.0.dist-infodescription.rst
      c:program filesminiconda2libsite-packagespyparsing-2.2.0.dist-infoinstaller
      c:program filesminiconda2libsite-packagespyparsing-2.2.0.dist-infometadata
      c:program filesminiconda2libsite-packagespyparsing-2.2.0.dist-infometadata.json
      c:program filesminiconda2libsite-packagespyparsing-2.2.0.dist-info
    ecord
      c:program filesminiconda2libsite-packagespyparsing-2.2.0.dist-info	op_level.txt
      c:program filesminiconda2libsite-packagespyparsing-2.2.0.dist-infowheel
      c:program filesminiconda2libsite-packagespyparsing.py
      c:program filesminiconda2libsite-packagespyparsing.pyc
    Proceed (y/n)? y
      Successfully uninstalled pyparsing-2.2.0
    
    C:Windowssystem32>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:Windowssystem32>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:Windowssystem32>python3
    'python3' 不是内部或外部命令,也不是可运行的程序
    或批处理文件。
    
    C:Windowssystem32>conda search --full --name python
    
    
    CondaEnvironmentNotFoundError: Could not find environment: python .
    You can list all discoverable environments with `conda info --envs`.
    
    
    
    C:Windowssystem32>conda info -e
    # conda environments:
    #
    root                  *  C:Program FilesMiniconda2
    
    
    C:Windowssystem32>python --version
    Python 2.7.12 :: Continuum Analytics, Inc.
    
    C:Windowssystem32>conda create -n snakes python=3
    Fetching package metadata .........
    Solving package specifications: ..........
    
    Package plan for installation in environment C:Program FilesMiniconda2envssnakes:
    
    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:Windowssystem32>python --version
    Python 2.7.12 :: Continuum Analytics, Inc.
    
    C:Windowssystem32>activate snakes
    
    (snakes) C:Windowssystem32>python --version
    Python 3.6.1 :: Continuum Analytics, Inc.
    
    (snakes) C:Windowssystem32>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:Windowssystem32>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:UsersyzhAppDataLocalpipCachewheels41127b8a5763b32bbea5d7bca33dfbdb4740541ef17f5ca3f22b3be9
    Successfully built pymongo
    Installing collected packages: pymongo
    Successfully installed pymongo-3.4.0
    
    (snakes) C:Windowssystem32>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:Windowssystem32>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:Windowssystem32>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:Windowssystem32>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:Windowssystem32>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:UsersyzhAppDataLocalpipCachewheelsa73c21dcc99951b6aeac495e7695505d1837616ca194938f07d1d7b
    Successfully built webencodings
    Installing collected packages: webencodings
    Successfully installed webencodings-0.5
    
    (snakes) C:Windowssystem32>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:Windowssystem32>anaconda search -t conda past
    'anaconda' 不是内部或外部命令,也不是可运行的程序
    或批处理文件。
    
    (snakes) C:Windowssystem32>conda search -t conda past
    usage: conda-script.py [-h] [-V] command ...
    conda-script.py: error: unrecognized arguments: -t past
    
    (snakes) C:Windowssystem32>disactivate snakes
    'disactivate' 不是内部或外部命令,也不是可运行的程序
    或批处理文件。
    
    (snakes) C:Windowssystem32>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:Windowssystem32>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 filesminiconda2envssnakeslibsite-packages (from paste)
    Installing collected packages: paste
    Successfully installed paste-2.0.3
    
    (snakes) C:Windowssystem32>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:Windowssystem32>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:UsersyzhAppDataLocalpipCachewheelsc2507cd83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a
    Successfully built future
    Installing collected packages: future
    Successfully installed future-0.16.0
    
    (snakes) C:Windowssystem32>
    

      

  • 相关阅读:
    常用模块
    递归函数
    内置函数与匿名函数
    Mac控制台相关操作
    Maven相关知识记录
    @Import底层实现原理
    spring循环依赖
    springcloud注册中心对比
    分布式事务
    Drools使用注意事项
  • 原文地址:https://www.cnblogs.com/nidongde/p/6645446.html
Copyright © 2020-2023  润新知