Say no to pip install in the command line! Here's an alternative way to install TensorFlow on your local machine in 3 steps.
![image-239](https://www.freecodecamp.org/news/content/images/2021/04/image-239.png)
Why am I writing this?
I played around with pip install with multiple configurations for several hours, trying to figure how to properly set my python environment for TensorFlow and Keras.
![image-31](https://www.freecodecamp.org/news/content/images/2019/07/image-31.png)
![image-32](https://www.freecodecamp.org/news/content/images/2019/07/image-32.png)
Just before I gave up, I found this…
This article will walk you through the process how to install TensorFlow and Keras by using the GUI version of Anaconda. I assume you have downloaded and installed Anaconda Navigator already.
Let’s get started!
- Launch Anaconda Navigator. Go to the Environments tab and click ‘Create’.
![image-33](https://www.freecodecamp.org/news/content/images/2019/07/image-33.png)
2. Input a new environment name - I put ‘tensorflow_env’. Make sure to select Python 3.6 here! Then ‘Create’, this may take few minutes.
![image-34](https://www.freecodecamp.org/news/content/images/2019/07/image-34.png)
3. In your new ‘tensorflow_env’ environment, select ‘Not installed’, and type in ‘tensorflow’. Then, tick ‘tensorflow’ and ‘Apply’. The pop-up window will appear, go ahead and apply. This may take several minutes.
![image-35](https://www.freecodecamp.org/news/content/images/2019/07/image-35.png)
Do the same for ‘keras’.
![image-36](https://www.freecodecamp.org/news/content/images/2019/07/image-36.png)
Check your installation by importing the packages. If everything is okay, the command will return nothing. If the installation was unsuccessful, you will get an error.
![image-37](https://www.freecodecamp.org/news/content/images/2019/07/image-37.png)
![image-38](https://www.freecodecamp.org/news/content/images/2019/07/image-38.png)
![image-39](https://www.freecodecamp.org/news/content/images/2019/07/image-39.png)
And…Ta-da! It’s done! You can follow this article to test your newly installed packages :)
Thank you for reading. Please give it a try, and let me know your feedback!
Consider following me on GitHub, Medium, and Twitter to get more articles and tutorials on your feed if you like what I did. :)