首页 > 代码库 > python 安装相关命令-汇总
python 安装相关命令-汇总
Microsoft Windows [版本 10.0.14393](c) 2016 Microsoft Corporation。保留所有权利。C:\Windows\system32>python -m pip install --upgrade pipCollecting pip Using cached pip-9.0.1-py2.py3-none-any.whlInstalling collected packages: pip Found existing installation: pip 8.1.2 Uninstalling pip-8.1.2: Successfully uninstalled pip-8.1.2Successfully installed pip-9.0.1C:\Windows\system32>pip install pymongoCollecting pymongo Using cached pymongo-3.4.0-cp27-none-win_amd64.whlInstalling collected packages: pymongoSuccessfully installed pymongo-3.4.0C:\Windows\system32>pip install pymysqlCollecting pymysql Downloading PyMySQL-0.7.10-py2.py3-none-any.whl (78kB) 100% |████████████████████████████████| 81kB 188kB/sInstalling collected packages: pymysqlSuccessfully installed pymysql-0.7.10C:\Windows\system32>pip install pyparsingCollecting pyparsing Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB) 100% |████████████████████████████████| 61kB 367kB/sInstalling collected packages: pyparsingSuccessfully installed pyparsing-2.2.0C:\Windows\system32>pip uninstall pyparsingUninstalling 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.pycProceed (y/n)? y Successfully uninstalled pyparsing-2.2.0C:\Windows\system32>pip install pyparsing==2.1.4Collecting pyparsing==2.1.4 Downloading pyparsing-2.1.4-py2.py3-none-any.whl (40kB) 100% |████████████████████████████████| 40kB 201kB/sInstalling collected packages: pyparsingSuccessfully installed pyparsing-2.1.4C:\Windows\system32>pythonPython 2.7.12 |Continuum Analytics, Inc.| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] on win32Type "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 pythonCondaEnvironmentNotFoundError: 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\Miniconda2C:\Windows\system32>python --versionPython 2.7.12 :: Continuum Analytics, Inc.C:\Windows\system32>conda create -n snakes python=3Fetching 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 MBThe 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_0Proceed ([y]/n)? yFetching packages ...vs2015_runtime 100% |###############################| Time: 0:00:04 440.02 kB/spython-3.6.1-0 100% |###############################| Time: 0:00:48 679.67 kB/ssetuptools-27. 100% |###############################| Time: 0:00:01 552.33 kB/swheel-0.29.0-p 100% |###############################| Time: 0:00:00 176.50 kB/spip-9.0.1-py36 100% |###############################| Time: 0:00:01 1.11 MB/sExtracting 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 --versionPython 2.7.12 :: Continuum Analytics, Inc.C:\Windows\system32>activate snakes(snakes) C:\Windows\system32>python --versionPython 3.6.1 :: Continuum Analytics, Inc.(snakes) C:\Windows\system32>pythonPython 3.6.1 |Continuum Analytics, Inc.| (default, Mar 22 2017, 20:11:04) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> import pymongoTraceback (most recent call last): File "<stdin>", line 1, in <module>ModuleNotFoundError: No module named ‘pymongo‘>>> exitUse exit() or Ctrl-Z plus Return to exit>>> exit()(snakes) C:\Windows\system32>pip install pymongoCollecting pymongo Downloading pymongo-3.4.0.tar.gz (583kB) 100% |████████████████████████████████| 583kB 137kB/sBuilding 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\8a5763b32bbea5d7bca33dfbdb4740541ef17f5ca3f22b3be9Successfully built pymongoInstalling collected packages: pymongoSuccessfully installed pymongo-3.4.0(snakes) C:\Windows\system32>pip install pymysqlCollecting pymysql Using cached PyMySQL-0.7.10-py2.py3-none-any.whlInstalling collected packages: pymysqlSuccessfully installed pymysql-0.7.10(snakes) C:\Windows\system32>pip install pyparsingCollecting pyparsing Using cached pyparsing-2.2.0-py2.py3-none-any.whlInstalling collected packages: pyparsingSuccessfully installed pyparsing-2.2.0(snakes) C:\Windows\system32>pythonPython 3.6.1 |Continuum Analytics, Inc.| (default, Mar 22 2017, 20:11:04) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> from pyparsing import unichr>>> exit()(snakes) C:\Windows\system32>pip install pastCollecting 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 webencodingsCollecting webencodings Downloading webencodings-0.5.tar.gzBuilding 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\1dcc99951b6aeac495e7695505d1837616ca194938f07d1d7bSuccessfully built webencodingsInstalling collected packages: webencodingsSuccessfully installed webencodings-0.5(snakes) C:\Windows\system32>pip install sixCollecting six Downloading six-1.10.0-py2.py3-none-any.whlInstalling collected packages: sixSuccessfully installed six-1.10.0(snakes) C:\Windows\system32>anaconda search -t conda past‘anaconda‘ 不是内部或外部命令,也不是可运行的程序或批处理文件。(snakes) C:\Windows\system32>conda search -t conda pastusage: 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>pythonPython 3.6.1 |Continuum Analytics, Inc.| (default, Mar 22 2017, 20:11:04) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> exit()(snakes) C:\Windows\system32>pip install pasteCollecting paste Downloading Paste-2.0.3-py34-none-any.whl (625kB) 100% |████████████████████████████████| 634kB 549kB/sRequirement already satisfied: six>=1.4.0 in c:\program files\miniconda2\envs\snakes\lib\site-packages (from paste)Installing collected packages: pasteSuccessfully installed paste-2.0.3(snakes) C:\Windows\system32>pip install pastCollecting 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 futureCollecting future Downloading future-0.16.0.tar.gz (824kB) 100% |████████████████████████████████| 829kB 427kB/sBuilding 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\0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017aSuccessfully built futureInstalling collected packages: futureSuccessfully installed future-0.16.0(snakes) C:\Windows\system32>
python 安装相关命令-汇总
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。