And my computer for two days , Finally let me tensorflow It's on my virtual machine ubuntu upper , This process can't be described as hard , Too tired (/ω\
). Now I will write down the pit I met in these two days and the process of filling the pit , If you need a partner, you can use it as a reference .
   Declare my operating system and software version in advance :
      Host operating system :Windows7 64 position
      On the host python edition :32 position python3.6
      virtual machine :VMware workstation 14
      Client operating system :Ubuntu16.04.3
     Tensorflow:CPU edition

about windows Upper mounting tensorflow The pit of

   Want to Windows Upper mounting tensorflow One of the problems we must pay attention to is : need 64 Bitwise python! need 64 Bitwise python! need 64 Bitwise python!
( Important things are to be repeated for 3 times ) But I installed it on my system python It was selected by default 32 position , Because the code on the Internet 32 Mainstream . And when you don't know the problem , Directly on the command line pip You will be prompted that there is no corresponding version :Could
not find a version that satifies the requirement tensorflow(from version:) No
matchinn distribution found for tensorflow
And it seems to support only 3.5 And above :

If installed 64 It seems that you are likely to encounter other problems , And my host and Anaconda Assault ( Can be installed , But after three or four days, I broke myself , This problem has not been solved so far ...), So all my computing packages are one by one pip
install Installed , If you unload it 32 Bitwise python, There will be a lot of work in the future , I want to use my virtual machine to build Linux Operating system of , stay Linux Run up there tensorflow Code of .
   be careful : I'm in a hole here , Because of the toss ubuntu It's a big hole , So I went back to see if I could install two 3.6 edition , Let them live together . Proven facts :python2.7
64 Bitwise sum python3.6 32 Position can coexist harmoniously , But two python3.6 I really can't get along with each other on my computer !o(╥﹏╥)o
   therefore , So far, I'm just using virtual machines , As for the dual system , But my computer is fragile , I'm afraid that if it's all broken by accident, I'll go back to the pre liberation period ... So I chose the way of virtual machine .

about VMware workstation Upper and lower versions ubuntu The pit of

   ok , First of all, I always have it on my computer VMware Virtual machine of , It was installed about two years ago , It's still the old version 10.0. And then it's loaded Ubuntu still 13 Of , When I came in, the system prompted a question , But I didn't pay much attention :

And if you enter Linux terminal , Because I haven't dealt with anything before python dependent , So we need to see the version , Update, etc , But it all went wrong .
     Check version and installation pip fail :
    Update failed , Neglect all the way , Error and unable to download :

   I've been looking for information on the Internet for a long time since these problems occurred , What to update network settings , I've tried to modify the Internet source , In the end, I compromised , I went to download the latest ubuntu16.04. be careful : If you have a similar problem with your computer , And it 's a lower version ubuntu The words , No more drumming , Change the virtual machine version !
  VMware The version seems to be all right , But if not, just download the latest version , Please refer to this article for download version and secret key : <>
   my VMware14 And the secret key are all entered in this one , Yes ! If there is an earlier version of VMware If you like , It's a direct upgrade .
  OK! It seems that I've talked about the two days' frustrations , Now I'll write down the whole installation process , And then highlight the problems that are easy to occur .

1. install VMware workstation

   Download the file according to the address in the above link , You can see the following files ( No choice when downloading , It's all downloaded ):
Then click the app to install it directly , Just choose your own path . The rest can be defaulted . It looks like this after installation and opening :

in addition , install 14 Version time , Black screen may appear when playing virtual machine , Prompt the following questions :

At this time, you can pass
<> Solution , That's how mine works .

2. install ubuntu virtual machine

   What we use this time is ubuntu16.4 edition , Download link :
   We choose 64 Bit version , Download followed by ISO Image file .
   And then we were VMware Middle selection “ Create a new virtual machine ”—— choice “ custom ”:
   Next, we can keep the default state directly , Just go to the next step :

Note the path here : First of all, it's better not to have Chinese in the path ( It's been a long time since we installed the software , Chinese may encounter unexpected troubles !), And then I created two empty folders in an empty folder :system and ROM, Choose this time ROM. continue :

The processor core depends on your preferences and needs , I usually choose two cores ,2 Processors .

Memory is also on demand , I chose 2G.

This network connection is also the default , choice NAT, After that, we need to connect with the Internet .

Disk is the default 20G. If you need more, you can choose by yourself .

be careful : At this time, choose the one we just had system Folder to save .

  OK! installation is complete , It's time we started ~~
   Before power on , We need to do the following , That is to add the operating system .
   Browse and select the one you downloaded before ISO file . You can turn it on after you confirm .
   Left selection “ Simplified Chinese ”, Then select the installation on the right .
   Choose both .
   The partition above is more important , Especially, do not choose the wrong mount point , The size of the space behind can be adjusted appropriately .
be careful : There's a pit here , You can see that I'm finished zoning at this time , You don't see it when you want to move on continue 了 , I've been wrestling with this for a long time , Finally found the source and solution of the problem on the Internet : Mainly because of computer resolution and VMware The difference , The solution is to press and hold Alt At the same time, press and drag the left mouse button to see

   be careful : Remember the password here , This password is required for later power on and use of super permissions .
   And then it was installed , wait for ...

3. install VMware Tools

   By default , We can't copy and paste the files in the virtual machine and the files in the host directly , however , If Linux It's a lot of trouble to download files or something, and it seems that the Internet speed is not fast , So we installed VMware
Tools To help us . The specific operation can be seen
This blog , That's what I did , And successfully installed , And it works .
   After installation , We can download it on the host Anaconda Of Linux edition , Then drag to ubuntu On the table , Save us in Linux Download it again .

4.Anaconda Installation of

   get into Linux After the system , Open terminal , We can take a look at the system python edition .ubuntu16 Self contained 2.7 and 3.5. Through python -V To view the version :
   We can update it at this time :
  sudo apt-get update Then enter the password , Waiting for update . But there may be problems at this time :
in other words , There it is apt Occupied , At this time, we can solve it through the following solutions .

That is, input ps -aux And find all apt process , Later use sudo kill PID( Four digit number ) Proceed with process termination :

This time, just input the updated code above . Install later pip:sudo apt-get install python-pip
   About to download Anaconda Copy to ubuntu On the desktop , Then switch directories at the terminal :cd desktop
   install : bash This is the name of the downloaded file )

   And then go all the way yes That's it , You will be prompted to add an environment variable , It's also yes, But I did it over and over again 3 All over , This step didn't let me choose , But directly no, So it needs to be manually modified after the installation , And there's a hint on it . specific working means : Input at terminal
sudo gedit /etc/profile, open profile file . Add statement export
( This sentence is prompted above , It must be different from mine ), preservation , sign out . Then you need to restart the terminal , Even restart ubuntu. After restart , Input at terminal conda
list To view anaconda Various packages installed , It also indicates that the environment variable is added successfully .
   Want to use anaconda You can directly input spyder open Spyser. perhaps anaconda-navigator open Anaconda

4. install tensorflow

   Finally came to our goal ——tensorflow. Open terminal , input :
  pip install tensorflow And all the way yes,enter that will do .
You can see notebook Import in tensorflow no problem , So it was a success ! Mission accomplished !!


   This question really tormented me for two days , During that time, the blog I opened to fill in the pit didn't 100 individual , There are 98 individual . But to be honest , Although I stepped on the pit all the way , But when all the problems are solved , And find out why , At the end of the day , I'm really happy . Life is stepping on the pit , When a program needs to step on a hole ! I hope the questions in this blog will be helpful to some white people like me , If there is any problem with my blog, please leave a message , Or email me ~