For example when I use !pip install ...
VSCode suggests me to use %pip install ...
. Similarly there is a version of mv
for both !
and %
. Is there an advantage to use one over the other?
Yes, %pip
will properly resolve the appropriate virtual environment (the one that is used by the current kernel) in most edge cases, while !pip
will not and you may end up installing packages in incorrect locations.
Some references:
%pip
magic%pip
and %conda
magicsIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With