On my windows 7 system I try to install as many packages using conda. These are easy to update with
conda update all
Unfortunately some packages don't appear in conda but are available through pip and so for those I install them using pip. Updating all pip packages on windows seems more difficult but
for /F "delims===" %i in ('pip freeze -l') do pip install -U %i
is one way I found.
However, this attempts to update all packages, even those installed by conda I believe.
Is there some way to update only those packages installed by pip?
This is tricky as Pip packages are different than conda packages. Anaconda adds pip as an install choice and puts them in the environment but it does not manage them. Pip is still without an easy command to upgrade all but some suggestions are as you tried and this is another:
Here is my attempt at a shell script that will parse the output of
conda env export
and upgrade any PIP packages:This is an another simple script using output of
conda list
which contains list of pip packages.