python


1、Anaconda命令行切换版本

<pre><code class="language-bash"> C:\Users\zcr&gt;conda create -n python3.6 python=3.6 Fetching package metadata ......... Solving package specifications: .......... Package plan for installation in environment D:\Program Files\Anaconda3\envs\python3.6: The following packages will be downloaded: package | build ---------------------------|----------------- vs2015_runtime-14.0.25420 | 0 2.0 MB vc-14 | 0 703 B python-3.6.2 | 0 31.5 MB certifi-2016.2.28 | py36_0 214 KB wheel-0.29.0 | py36_0 129 KB wincertstore-0.2 | py36_0 14 KB setuptools-36.4.0 | py36_1 534 KB pip-9.0.1 | py36_1 1.7 MB ------------------------------------------------------------ Total: 36.0 MB The following NEW packages will be INSTALLED: certifi: 2016.2.28-py36_0 pip: 9.0.1-py36_1 python: 3.6.2-0 setuptools: 36.4.0-py36_1 vc: 14-0 vs2015_runtime: 14.0.25420-0 wheel: 0.29.0-py36_0 wincertstore: 0.2-py36_0 Proceed ([y]/n)? y Pruning fetched packages from the cache ... Fetching packages ... vs2015_runtime 100% |###############################| Time: 0:00:04 500.73 kB/s vc-14-0.tar.bz 100% |###############################| Time: 0:00:00 176.14 kB/s python-3.6.2-0 100% |###############################| Time: 0:00:11 2.82 MB/s certifi-2016.2 100% |###############################| Time: 0:00:01 113.86 kB/s wheel-0.29.0-p 100% |###############################| Time: 0:00:01 104.18 kB/s wincertstore-0 100% |###############################| Time: 0:00:00 9.75 MB/s setuptools-36. 100% |###############################| Time: 0:00:02 197.28 kB/s pip-9.0.1-py36 100% |###############################| Time: 0:00:03 481.91 kB/s Extracting packages ... [ COMPLETE ]|##################################################| 100% Linking packages ... [ COMPLETE ]|##################################################| 100% # # To activate this environment, use: # &gt; activate python3.6 # # To deactivate this environment, use: # &gt; deactivate python3.6 # # * for power-users using bash, you must source # C:\Users\zcr&gt;activate python3.6 (python3.6) C:\Users\zcr&gt;python Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; exit() (python3.6) C:\Users\zcr&gt;deactivate python3.6 C:\Users\zcr&gt;</code></pre>

页面列表

ITEM_HTML