来自一个小白,安装 tensorflow成功的全过程

本人pyhont小白,因为喜欢机器学习,一直在认真学习中

在学习机器习中,一定要用到的一个模块那就是 tensorflow 模块,很多人因为不安装这个模块,而放弃了,今天我也花了一晚上才完成安装

这个文章主要是想写一下我今晚装的全过程,和走过的坑,希望对你有所帮助

我用的是 莫烦 python  里面的一教程,不过因为年代久远,还有要结合自己的电脑配置

那我们开始吧

我 最简单的安装方式, pip 安装

安装的是 Windows 系统 的  GPU 版

目前只支持 Python 3.5/3.6 (64bit) 版本

你有安装 numpy 要先安装 pip3 install numpy

接下来惊心动魄啦! 在 command 窗口中执行

C:\> pip3 install --upgrade tensorflow

好!如果你足够幸运,到这里就安装成功了,

但这个不是每个人都这么好运的

那我来说说,我走过的坑吧:

然后打开你的 python 编辑器, 输入

import tensorflow

1.

Tensorflow安装错误之 Cannot uninstall wrapt

问题描述:

解决方案:

pip install wrapt –ignore-installed

2.

出现错误:ImportError: cannot import name ‘main’

问题描述:

解决方案:

敲入指令:pip install –user notebook

到这里再从新安装一次 tensorflow

在 command 窗口 显示安装成功了,用 编辑器试,发现找不到模块,网上一查原来是我的CPU太旧了,运行不了 最新的 tensorflow

解决方案:

不支持老版本的CPU的,出现import问题正常可以尝试安装个低点版本的
pip install tensorflow==1.5 -i http://mirrors.aliyun.com/pypi/simple –trusted-host mirrors.aliyun.com

嗯,我有安装了一次,这次可以了吗,

等等,还是不可以, 因数安装的 numpy,版本也高了

解决方案:

pip install numpy==1.16.0

这样一来一回的,一晚上就过去,第一次程教有什么不对多多指点

问天道 » 来自一个小白,安装 tensorflow成功的全过程

评论 0

  1. indirThis is an excellent, an eye-opener for sure! Good job on this article! Good job on this article! You appear to know a lot about this. Ynez Kory Llewellyn回复
  2. erotikPlayStation 4 has been Horror games? Resident Evil. Cristionna Ferrell Yasu回复
  3. filmkovasiWay cool! Some very valid points! I appreciate you penning this article and the rest of the site is extremely good. Lib Tammy Forrester回复
  4. altyaziliThanks for sharing, this is a fantastic post. Much thanks again. Charin Wes Mitchell回复
  5. yabanciPretty! This was an extremely wonderful article. Thanks for supplying these details. Morgana Humbert Leventis回复
  6. tek partNice I like those! I think they turned out pretty good! Well done! Reeba Marwin Gaspard回复
  7. turkcewhoah this blog is wonderful i like studying your articles. Keep up the great work! You recognize, lots of individuals are hunting round for this information, you could aid them greatly. | Hatty Llywellyn Thynne回复
  8. dizilerAsking questions are in fact nice thing if you are not understanding something totally, but this article presents fastidious understanding even. Rosamund Brian Zaslow回复
  9. altyaziliThanks for your own labor on this web site. My mother take interest in participating in research and it is simple to grasp why. My spouse and i notice all regarding the powerful way you produce useful thoughts via your website and in addition recommend response from the others on this subject then our own princess is undoubtedly studying a whole lot. Take pleasure in the rest of the year. You have been performing a terrific job. Lesley Ronnie Napoleon回复
  10. blurayVery nice blog post. I absolutely love this site. Continue the good work! Ranee Byrann Jessa回复
  11. dublajI have been examinating out many of your posts and i can state pretty clever stuff. I will definitely bookmark your site. Prudi Robinet Coumas回复
  12. amateurWow, marvelous blog format! How long have you been running a blog for? you make running a blog glance easy. The total glance of your web site is excellent, as smartly as the content! Lynsey Rolando Warenne回复
  13. 720pWhat a stuffinformationdatamaterial of un-ambiguity and preserveness of preciousvaluable experienceknowledgefamiliarityknow-how regardingconcerningabouton the topic of unexpectedunpredicted feelingsemotions. Ceil Cort Marcos回复
  14. bedavaExcellent post. I definitely appreciate this site. Keep it up! Ginny Quentin Warms回复
  15. erotikSome genuinely superb articles on this web site , regards for contribution. Junia Rolph Espy回复
  16. yabanciMy partner and I stumbled over here coming from a different website and thought I may as well check things out. I like what I see so i am just following you. Look forward to checking out your web page again. Dareen Garry Buckden回复
  17. erotikWhen I initially commented I clicked the -Notify me when brand-new remarks are included- checkbox and now each time a remark is included I get 4 emails with the exact same comment. Exists any way you can remove me from that service? Many thanks! Felipa Benyamin Atalaya回复
  18. erotikI wwas wondering if you ever considered changing the structure of your blog? Shaine Maxie Zurek回复
  19. turkceHave you ever thought about adding a little bit more than just your articles? Tiphanie Rodrick Clarice回复
  20. turkceI do like the way you have presented this specific situation plus it does indeed offer me personally a lot of fodder for consideration. Nevertheless, coming from what precisely I have observed, I basically wish as the actual remarks pack on that individuals stay on point and not embark upon a tirade involving some other news of the day. All the same, thank you for this fantastic point and even though I can not necessarily concur with this in totality, I regard the point of view. Lisa Prinz Noletta回复
  21. 匿名There is certainly a lot to learn about this subject. I really like all of the points you have made. Feel free to visit my web blog ... Leke KREMi回复
  22. 匿名Hello friends, pleasant piece of writing and good urging commented at this place, I am actually enjoying by these. Also visit my blog Kari回复
  23. 匿名Excellent post. I was checking constantly this blog and I am impressed! Extremely helpful info specially the last part 🙂 I care for such information much. I was seeking this certain information for a very long time. Thank you and best of luck. Take a look at my blog post ... Bud回复
  24. 匿名You could definitely see your expertise in the work you write. The arena hopes for more passionate writers like you who are not afraid to say how they believe. All the time go after your heart. My web page - Gorges Cream回复
  25. 匿名Wow, marvelous blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is magnificent, as well as the content! Here is my website ... top us online casinos回复
  26. 匿名Hello every one, here every one is sharing these know-how, so it's good to read this blog, and I used to visit this web site every day. Feel free to visit my blog post; Compoise 360X CBD回复
  27. 匿名If you would like to get a good deal from this post then you have to apply such techniques to your won webpage. Take a look at my blog post ... Gordon回复
  28. 匿名What i do not realize is in fact how you are no longer actually much more well-preferred than you may be now. You are so intelligent. You realize therefore significantly with regards to this matter, produced me in my opinion believe it from numerous various angles. Its like men and women aren't fascinated unless it is something to do with Woman gaga! Your own stuffs excellent. Always care for it up! Also visit my blog - Jolt Alpha回复
  29. 匿名Hey, you used to write fantastic, but the last several posts have been kinda boring... I miss your great writings. Past several posts are just a little bit out of track! come on! Feel free to surf to my website: Rhino Spark Male Enhancement Reviews回复
  30. 匿名I wanted to visit and allow you to know how , very much I cherished discovering your web blog today. I'd consider it an honor to work at my workplace and be able to utilize the tips shared on your blog and also take part in visitors' feedback like this. Should a position involving guest article author become available at your end, you should let me know. my web page; Green Leaf Hills CBD回复
  31. 匿名Thanks on your marvelous posting! I really enjoyed reading it, you may be a great author. I will make certain to bookmark your blog and definitely will come back down the road. I want to encourage you to definitely continue your great job, have a nice holiday weekend! Stop by my webpage; Greener Earth CBD Gummies回复
  32. 匿名I'm very pleased to discover this site. I need to to thank you for ones time due to this wonderful read!! I definitely loved every little bit of it and i also have you bookmarked to see new information in your web site. Have a look at my web blog ... Natural Alpha XL回复
  33. 匿名Hello, i feel that i noticed you visited my blog thus i came to return the choose?.I am attempting to in finding issues to enhance my website!I suppose its ok to use a few of your ideas!! Have a look at my web-site ... Follipur Hair回复
  34. 匿名There is noticeably a lot to know about this. I suppose you made some nice points in features also. Feel free to visit my page ... Compoise 360X CBD Reviews回复
  35. 匿名Caramba, que show hein! Não é nas qualquer lugar remedio que retarda a ejaculaçao precoce se acha tema prazeroso de que forma o Teu. Agradeço de Seu post, acabei de incluir Seu web site nos meus favoritos. 🙂回复
  36. 匿名A fascinating discussion is worth comment. I do believe that you need to publish more on this subject matter, it might not be a taboo matter but usually people don't discuss these issues. To the next! Best wishes!! Here is my site Greener Earth CBD Oil回复
  37. 匿名Outstanding article it is without doubt. I've been awaiting for this content. Also visit my blog: Allura Fresh Skin Care回复
  38. 匿名Greetings! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading your blog posts. Can you suggest any other blogs/websites/forums that cover the same topics? Many thanks! Also visit my homepage - sports betting shows回复
  39. 匿名whoah this blog is great i like studying your posts. Stay up the good work! You know, many people are searching round for this info, you could help them greatly. my web site 360X CBD回复
  40. 匿名https://www.pinterest.com/pin/580753314454151506 - Конек-горбунок смотреть онлайн World, Special Report, Americas回复
  41. 匿名Wonderful beat ! I would like to apprentice even as you amend your website, how could i subscribe for a blog website? The account helped me a appropriate deal. I were tiny bit familiar of this your broadcast provided brilliant clear idea Feel free to visit my web-site ... Coastal Hemp CBD Reviews回复
  42. 匿名Stop by my site Опсуимолог回复
  43. 匿名I need to to thank you for this wonderful read!! I absolutely loved every bit of it. I've got you bookmarked to check out new things you post... My website Rhino Spark Male Enhancement Reviews回复
  44. 匿名I was suggested this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my trouble. You are incredible! Thanks! my site ... Pellamore Review回复
  45. 匿名I'm impressed, I must say. Rarely do I come across a blog that's equally educative and engaging, and let me tell you, you have hit the nail on the head. The problem is something which too few people are speaking intelligently about. I am very happy I stumbled across this during my hunt for something regarding this. Look at my blog :: ViagRx Review回复
  46. 匿名Rattling instructive and good bodily structure of content material, now that's user pleasant (:. Feel free to visit my website Nature Fused Anti Aging Cream回复
  47. 匿名I am not sure where you're getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for wonderful information I was looking for this information for my mission. Feel free to visit my page ... Green Earth CBD Review回复
  48. 匿名Oh my goodness! Incredible article dude! Many thanks, However I am going through difficulties with your RSS. I don't know the reason why I can't join it. Is there anybody else getting the same RSS problems? Anyone who knows the answer can you kindly respond? Thanx!! My webpage Magnolia回复