{"id":185,"date":"2019-07-09T16:32:09","date_gmt":"2019-07-09T08:32:09","guid":{"rendered":"http:\/\/www.mustenaka.cn\/?p=185"},"modified":"2019-07-10T01:48:42","modified_gmt":"2019-07-09T17:48:42","slug":"usecondainstalltensorflow","status":"publish","type":"post","link":"https:\/\/www.mustenaka.cn\/index.php\/2019\/07\/09\/usecondainstalltensorflow\/","title":{"rendered":"\u4f7f\u7528conda\u5b89\u88c5tensorflow"},"content":{"rendered":"<h1>\u5728LINUX\u73af\u5883\u4e0b\u4f7f\u7528anaconda\u5b89\u88c5tensorflow-gpu\u7248\u672c<\/h1>\n<p>\u4ecb\u7ecd\uff1a\u7531\u4e8eLINUX\u7cfb\u7edf\u81ea\u5e26\u6709PYTHON\uff0c\u5f53\u6211\u4eec\u76f4\u63a5\u5b89\u88c5anaconda\u7684\u65f6\u5019\u4f1a\u81ea\u52a8\u5bf9\u7cfb\u7edf\u7684python\u8fdb\u884c\u8986\u76d6\uff0c\u5982\u672c\u4eba\u7684\u7535\u8111\u6ca1\u6709\u5378\u8f7d\u9ed8\u8ba4\u7684python3.6\u76f4\u63a5\u5b89\u88c5\u4e86\u6700\u65b0\u7248\u672c\u7684anaconda\uff0c\u8f93\u5165python3\u5c31\u4f1a\u81ea\u52a8\u53d8\u6210\u7ec4\u65b0\u7684Python3.7\uff0c\u4f46\u662f\u8fd9\u4e2a\u65f6\u5019pip3\u8fd8\u662f\u5c5e\u4e8epython3.6\uff0c\u8fd9\u6837\u4f7f\u7528tensorflow\u5b98\u7f51\u63d0\u4f9b\u7684pip\u76f4\u63a5\u5b89\u88c5\u5c31\u4f1a\u51fa\u73b0\u95ee\u9898\uff0c\u56e0\u6b64\u5199\u4e0b\u4f7f\u7528conda\u5b89\u88c5tensorflow\u7684\u5b89\u88c5\u8fc7\u7a0b\u3002<\/p>\n<p><!--more--><\/p>\n<p>anaconda\u672c\u6765\u5c31\u5c5e\u4e8e\u4e00\u79cd\u5305\u7ba1\u7406\u5668\uff0c\u76f4\u63a5\u7ba1\u7406tensorflow\u800c\u4e0d\u7528pip\uff0c\u5c82\u4e0d\u7f8e\u54c9\uff1f<\/p>\n<p>\u76f4\u63a5conda install tensorflow-gpu \u662f\u4e0d\u53ef\u4ee5\u7684\uff0c\u56e0\u4e3aconda\u4e2d\u6709\u4f17\u591a\u7684tensorflow\u5305<\/p>\n<p>\u9996\u5148\uff0c\u5728anaconda\u5e93\u4e2d\u641c\u7d22tensorflow\u7684\u5305\u6709\u591a\u5c11<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" null=\"\">anaconda search -t conda tensorflow<\/code><\/pre>\n<p>\u6211\u4eec\u4f1a\u5f97\u5230\u8d85\u957f\u7684\u4e00\u5217<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.24.08-300x138.png\" alt=\"\" width=\"791\" height=\"364\" class=\"alignnone wp-image-186\" srcset=\"https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.24.08-300x138.png 300w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.24.08-768x354.png 768w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.24.08-1024x472.png 1024w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.24.08.png 1919w\" sizes=\"(max-width: 791px) 100vw, 791px\" \/><\/p>\n<p>\u6211\u4eec\u5728name\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u81ea\u5df1\u9700\u8981\u7684\u5305\uff0c\u5982\u679c\u4f60\u662fwindows\u7cfb\u7edf\u7684\u8bdd\uff0c\u6ce8\u610f\u5728Platforms\u540e\u9762\u9009\u62e9win\u7cfb\u5217\u7684\u7248\u672c\uff0c\u800c\u5e73\u65f6\u6211\u4eec\u5728linux\u4e2d\u5c31\u76f4\u63a5\u9009\u62e9linux-64\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u5f53\u6211\u4eec\u9009\u62e9\u5230\u4e00\u4e2a\u5fc3\u610f\u7684\u5305\uff0c\u5305\u62ec\u5176\u4e2dtensorflow\u7684\u7248\u672c\u4e4b\u540e\uff0c\u5982\u6211\u5c31\u770b\u4e0a\u4e86\u8fd9\u4e2a\u5305anaconda\/tensorflow-base<\/p>\n<p>\u4ed6\u6765\u81ea\u4e8eanaconda\u5b98\u65b9\uff0c\u63d0\u4f9btensorflow1.13.1\u7684\u7248\u672c\uff0c\u6211\u4eec\u4f7f\u7528\u67e5\u770b\u547d\u4ee4\u67e5\u770b\u8fd9\u4e2a\u5305\u7684\u8be6\u7ec6\u53c2\u6570\u5185\u5bb9\uff0c\u770b\u770b\u9700\u8981\u4f7f\u7528\u4ec0\u4e48\u6837\u7684\u6e90\u6765\u8fdb\u884c\u4e0b\u8f7d<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" null=\"\">anaconda show anaconda\/tensorflow-base<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.29.15-300x126.png\" alt=\"\" width=\"757\" height=\"318\" class=\"alignnone wp-image-187\" srcset=\"https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.29.15-300x126.png 300w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.29.15-768x322.png 768w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.29.15-1024x430.png 1024w, https:\/\/www.mustenaka.cn\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-09-16.29.15.png 1039w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/p>\n<p>\u5f97\u5230\u4ee5\u4e0b\u5185\u5bb9\uff0c\u751a\u81f3\u5305\u62ec\u7248\u672c\u53f7\uff0c\u4f46\u6211\u4eec\u6700\u91cd\u8981\u7684\u662f\u83b7\u53d6\u5e95\u4e0b\u7684\u4e0b\u8f7d\u5b89\u88c5\u547d\u4ee4\u3002<\/p>\n<p>\u76f4\u63a5\u590d\u5236\u7c98\u8d34\u6700\u540e\u4e00\u884c\u7684\u5185\u5bb9\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" null=\"\">conda install --channel https:\/\/conda.anaconda.org\/anaconda tensorflow-base<\/code><\/pre>\n<p>\u9009\u62e9\u786e\u8ba4\u5b89\u88c5Y,\u7b49\u5f85\uff0c\u5c31\u5f00\u59cb\u73a9\u800d\u628a\u3002<\/p>\n<p>2019-7-10\u591c\u665a\u66f4\u65b0<\/p>\n<p>\u4f7f\u7528\u53d1\u751f\u62a5\u9519\uff1a<\/p>\n<p>\u3010\u6838\u5fc3\u5df2\u8f6c\u50a8\u3011<\/p>\n<p>\u7531\u4e8e\u672c\u4eba\u673a\u5b50CPU\u5f53\u65f6\u4e3a\u4e86\u7701\u94b1\u4f7f\u7528\u7684\u662f\u5954\u817e\u7684G4560\uff0c\u6ca1\u6709\u4f7f\u7528\u9177\u777f\u7cfb\u5217\uff0c\u5bfc\u81f4CPU\u7684\u8ba1\u7b97\u96c6\u7f3a\u5c11\uff0c\u5728\u4f7f\u7528\u9ad8\u7248\u672c\u7684tensorflow\u4e4b\u540e\u9047\u5230\u3010\u6838\u5fc3\u5df2\u8f6c\u50a8\u3011\u7684\u95ee\u9898\uff0c\u56e0\u6b64\u8865\u5145\u4ee5\u4e0b\u5185\u5bb9\uff0c\u5982\u679c\u60a8\u7684CPU\u5c5e\u4e8e\u6bd4\u8f83\u5148\u8fdb\u7684\uff0c\u53ef\u4ee5\u5ffd\u7565\u672c\u6587\u3002<\/p>\n<p>\u9996\u5148\u5378\u8f7d\u4ee5\u53ca\u5b89\u88c5\u7684tensorflow<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" null=\"\">conda uninstall tensorflow-gpu  #\u5982\u679c\u4f60\u662f\u5b89\u88c5cpu\u7248\u672c\u5219\u4e3a tensorflow<\/code><\/pre>\n<p>\u7136\u540e\u7531\u4e8e\u672c\u4eba\u5df2\u7ecf\u66f4\u6362\u4e86\u56fd\u5185\u7684\u6e05\u534e\u955c\u50cf\u6e90\uff0c\u5176\u5b9e\u4e0a\u9762\u7684\u65b9\u6cd5\u90fd\u4e0d\u5fc5\u8981\u90a3\u4e48\u9ebb\u70e6\uff0c\u76f4\u63a5<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" null=\"\">conda install tensorflow-gpu==1.5.0   #\u8fd9\u4e2a\u65e7\u7248\u672c\u5bf9\u65e7\u786c\u4ef6\u73af\u5883\u8fd8\u6709\u652f\u6301<\/code><\/pre>\n<p>\u67e5\u770b\u5982\u4f55\u66f4\u6362\u6e05\u534e\u6e90\u53ef\u4ee5\u53c2\u8003\u672c\u6587\uff1a<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"m18ad7XDpK\"><p><a href=\"https:\/\/www.mustenaka.cn\/index.php\/2019\/06\/29\/condacomandnote\/\">Conda\u547d\u4ee4\u7b14\u8bb0<\/a><\/p><\/blockquote>\n<p><iframe title=\"\u300aConda\u547d\u4ee4\u7b14\u8bb0\u300b\u2014\u6728\u5341\u7684\u535a\u5ba2\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"https:\/\/www.mustenaka.cn\/index.php\/2019\/06\/29\/condacomandnote\/embed\/#?secret=m18ad7XDpK\" data-secret=\"m18ad7XDpK\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728LINUX\u73af\u5883\u4e0b\u4f7f\u7528anaconda\u5b89\u88c5tensorflow-gpu\u7248\u672c \u4ecb\u7ecd\uff1a\u7531\u4e8eLINUX\u7cfb\u7edf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,4,30],"tags":[12,7,31],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-ai","category-linux","category-python","tag-ai","tag-linux","tag-python"],"views":4971,"_links":{"self":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/comments?post=185"}],"version-history":[{"count":4,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/categories?post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/tags?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}