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

Brunner, Clemens (clemens.brunner@uni-graz.at) clemens.brunner at uni-graz.at
Wed Oct 14 08:19:28 EDT 2020
Search archives:

        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


> On 14.10.2020, at 14:10, Burkhard Maess <maess at cbs.mpg.de> wrote:
> 
> 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
>> 
> 
>         External Email - Use Caution        
> 
> 
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis




More information about the Mne_analysis mailing list