【P-00】anaconda 安装总结

版权声明:转载请声名出处,谢谢 https://blog.csdn.net/u010591976/article/details/82083052

1-笔记本程序打开 看到Anaconda文件夹
2-打开文件中的 Anaconda Prompt ,相当于Windows里面的cmd命令,可以在其中安装在Anaconda里面安装python的数据库
3-查看Anaconda里面含有的python数据库

conda list

4.-查看你想安装的数据库,以tensorflow为例子,运行的结果如下,可以看到数据库的名称|名称|适合的系统,从中选择出适合你电脑版本的数据库名称,并复制

anaconda search -t conda tensorflow

**5-得到安装数据库命令,conda install –channel https://conda.anaconda.org/nehaljwani tensorflow
就是我们安装数据库需要执行的命令,复制粘贴到Anaconda Prompt里面执行即可**

anaconda show nehaljwani/tensorflow
#show后面是为上面我选中的适合Windows64位版本的tensorflow版本名称

输出:

运行结果如下:
(base) C:\Users\15868>anaconda show nehaljwani/tensorflow
Using Anaconda API: https://api.anaconda.org
Name: tensorflow
Summary: TensorFlow is a machine learning library
Access: public
Package Types: conda
Versions:
+ 1.0.1
+ 1.1.0
+ 1.2.1
To install this package with conda run:
conda install –channel https://conda.anaconda.org/nehaljwani tensorflow

* 6-执行上述的命令*

conda install --channel https://conda.anaconda.org/nehaljwani tensorflow

输出:
运行结果如下:
==> WARNING: A newer version of conda exists. <==
current version: 4.4.10
latest version: 4.5.
Please update conda by running
$ conda update -n base conda## Package Plan ##
environment location: F:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64
added / updated specs:
- tensorflow
The following packages will be downloaded:
package | build
—————————|—————–
openssl-1.0.2o | h8ea7d77_0 5.4 MB
backports.weakref-1.0rc1 | py36_0 8 KB
certifi-2018.4.16 | py36_0 143 KB
html5lib-0.9999999 | py36_0 178 KB
libprotobuf-3.2.0 | vc14_0 9.1 MB nehaljwani
protobuf-3.2.0 | py36_0 459 KB nehaljwani
tensorflow-1.2.1 | py36_0 21.0 MB nehaljwani
ca-certificates-2018.03.07 | 0 155 KB
vs2015_runtime-14.0.25420 | 0 2.0 MB nehaljwani
bleach-1.5.0 | py36_0 22 KB
markdown-2.6.11 | py36_0 122 KB
————————————————————
Total: 38.5 MB
The following NEW packages will be INSTALLED:
backports.weakref: 1.0rc1-py36_0
libprotobuf: 3.2.0-vc14_0 nehaljwani [vc14]
markdown: 2.6.11-py36_0
protobuf: 3.2.0-py36_0 nehaljwani
tensorflow: 1.2.1-py36_0 nehaljwani
The following packages will be REMOVED:
anaconda: 5.1.0-py36_2
The following packages will be UPDATED:
ca-certificates: 2017.08.26-h94faf87_0 –> 2018.03.07-0
certifi: 2018.1.18-py36_0 –> 2018.4.16-py36_0
openssl: 1.0.2n-h74b6da3_0 –> 1.0.2o-h8ea7d77_0
vs2015_runtime: 14.0.25123-3 –> 14.0.25420-0 nehaljwani
The following packages will be DOWNGRADED:
bleach: 2.1.2-py36_0 –> 1.5.0-py36_0
html5lib: 1.0.1-py36h047fa9f_0 –> 0.9999999-py36_0
Proceed ([y]/n)?

根据上面的提示,我更新了一下conda版本

Proceed ([y]/n)?y
运行结果如下:Downloading and Extracting Packages
openssl 1.0.2o: ############################################################################################### | 100%
backports.weakref 1.0rc1: ##################################################################################### | 100%
certifi 2018.4.16: ############################################################################################ | 100%
html5lib 0.9999999: ########################################################################################### | 100%
libprotobuf 3.2.0: ############################################################################################ | 100%
protobuf 3.2.0: ############################################################################################### | 100%
tensorflow 1.2.1: ##################################################################### | 74%
最后成功的会显示:
libprotobuf 3.2.0: ############################################################################################ | 100%
protobuf 3.2.0: ############################################################################################### | 100%
tensorflow 1.2.1: ############################################################################################# | 100%
ca-certificates 2018.03.07: ################################################################################### | 100%
vs2015_runtime 14.0.25420: #################################################################################### | 100%
bleach 1.5.0: ################################################################################################# | 100%
markdown 2.6.11: ############################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

* 6-最后学以致用 举一反三 这就是在Anacoda中安装数据库的方法~*

猜你喜欢

转载自blog.csdn.net/u010591976/article/details/82083052