Issue
I'm currently trying to start working with tensorflow. I work with anaconda and I tried to install the tensorflow packages in the root environment but it always displays the message: "Several errors encountered". When I looked it up it says the solution is to create another environment exclusively for tensorflow, I did and it worked. But I'd still like to know what the reason for this is.
Solution
I have had the same question when I started out. It seemed like it is the "correct" thing to do, so I just did it, but never understood why. After working with TensorFlow for 2 years now, and on multiple machines, I realised just how specific the set of its requirements is. Only a few versions of python are compatible with it, the same thing with numpy
, and if you want to use NVIDIA GPUs, good luck figuring out the specific versions of cuda
and cudnn
.
You don't want to have to tailor most of the python-related software on your machine to running tensorflow. In order to avoid breaking it whenever you install something that requires a higher version of numpy
, for example, it is best to keep it in a separate environment. This way you have an isolated "container" that keeps everything just the way TensorFlow wants it, while still being able to use other software if needed.
Not to mention that there are several versions of TensorFlow and they all have different requirements.
Answered By - idinu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.