[Mne_analysis] Uninstall all the older versions of MNE and its dependencies

Burkhard Maess maess at cbs.mpg.de
Wed Oct 14 08:10:38 EDT 2020
Search archives:

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
https://www.activestate.com/resources/quick-reads/how-to-update-all-python-packages/

best,
Burkhard


Am 14.10.20 um 12:54 schrieb Brunner, Clemens (clemens.brunner at uni-graz.at):
>         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
> 
> 
>> On 14.10.2020, at 10:52, Harish Gunasekaran <ngharish18 at gmail.com> wrote:
>>
>>         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
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
> 
> 
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
> 

-------------- 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 


More information about the Mne_analysis mailing list