Reputation: 755
Which one should I use to install keras if I have anaconda?
conda install -c conda-forge keras
&
pip install --upgrade keras
Also, what is conda-forge? Why need to do it this way?
Upvotes: 3
Views: 6996
Reputation: 6284
The advantages of using conda
rather than pip
to install packages in your Anaconda environment(s) are that:
conda
should determine what dependencies your requested package has, and install those too in one operation, andconda update
command:pip, PyPI, and setuptools?
None of this is going to help with updating packages that have been installed from PyPI via pip, or any packages installed using python setup.py install. conda list will give you some hints about the pip-based Python packages you have in an environment, but it won’t do anything special to update them.
The conda-forge channel is where you can find packages that have been built for conda but are not part of the official Anaconda distribution (yet).
See answers to this question for more detail on the two options (although bear in mind some of the answers may be out of date).
Upvotes: 3