Uninstall all the older versions of MNE and its dependencies

External Email - Use Caution

Hello MNE users/developers,
Could someone of you guide me on how to remove the older version of MNE
along with older dependencies too in *one-shot*? I tried using the* << pip
auto-remove mne -y>>* rather than << pip uninstall mne >> , but it's
not working.

The drawback with <<pip uninstall mne>> it doesn't remove the MNE
dependencies. Thus when I try to install newer MNE 0.21.0 using <<pip
install mne>>, the older dependencies are not getting replaced by the
latest versions of dependencies. And I'm a bit skeptical, that the latest
MNE might use the latest versions of the dependencies.

Thank you in advance for your help.

Best,
Harish

External Email - Use Caution

Hello!

You can list outdated packages with:

pip list -o

Then you can update each outdated package separately using

pip install -U <package>

(replacing <package> with the package name)

AFAIK there is no option to reliably remove a package including its dependencies; it is not even possible to update all outdated packages in one go.

Clemens

Hi,

there is at least one way on how updating all packages with two pip
commands:

pip freeze >requirements.txt
# search and replace '==' with '>=' within the file requirements.txt
pip install -r requirements.txt --upgrade

this is taken from

best,
Burkhard

        External Email - Use Caution

Hello!

You can list outdated packages with:

pip list -o

Then you can update each outdated package separately using

pip install -U <package>

(replacing <package> with the package name)

AFAIK there is no option to reliably remove a package including its dependencies; it is not even possible to update all outdated packages in one go.

Clemens

        External Email - Use Caution

Hello MNE users/developers,
Could someone of you guide me on how to remove the older version of MNE along with older dependencies too in one-shot? I tried using the << pip auto-remove mne -y>> rather than << pip uninstall mne >> , but it's not working.

The drawback with <<pip uninstall mne>> it doesn't remove the MNE dependencies. Thus when I try to install newer MNE 0.21.0 using <<pip install mne>>, the older dependencies are not getting replaced by the latest versions of dependencies. And I'm a bit skeptical, that the latest MNE might use the latest versions of the dependencies.

Thank you in advance for your help.

Best,
Harish

------------------------------------------------------------------------------------------
Harish Gunasekaran,
NUMERICS Ph.D. fellow under Marie Sk?odowska-Curie actions (2019-22),
Cognition & Brain Dynamics team, Cognitive Neuroimaging Unit (UNICOG),
NeuroSpin, CEA/DRF/Joliot, CEA Paris Saclay,
B?t 145 PC 156 , Gif s/ Yvette F-91190 FRANCE.
------------------------------------------------------------------------------------------

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5171 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201014/3bca3e0b/attachment.bin
-------------- next part --------------
        External Email - Use Caution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201014/3bca3e0b/attachment.html

External Email - Use Caution

Hi!

Yes, what I meant was that there is no built-in/supported option/command to do that. There are good reasons why this is the case, but there are workarounds that may or may not work like the one you mentioned. More examples are listed here:

https://stackoverflow.com/questions/2720014/how-to-upgrade-all-python-packages-with-pip

Clemens