[program-l] Re: Python: keeping libraries in virtual environments updated

  • From: <kperry@xxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Sun, 27 Nov 2022 21:47:51 -0500

Oh I am sorry.  I think I didn't cover all you were asking about.  About the
venv.  What you do is create a new venv.  Then you go to your old venv and
do 

Pip freeze > requirements.txt

Then you go to your new venv and do 

Pip install -r requirements.txt 

Then you use pip upgrade and the review I sent to update the libraries.


Now the problem is this doesn't always work because for example if you go
from 3.9.6 to 3.11 right now and try that with a library in one of your venv
as it will error because not all libraries keep up.  So you might have to
not update to the latest python if your libraries have not all caught up
with the python your switching to. 

I use pyenv-win or pyenv on linux to keep a lot of different versions of
python around and easy to switch to so I can have both different pythons and
different venvs.  Currently one of my projects has 3 venvs  two of them work
but I am waiting for WX widgets to work on the 3.111 version but I keep it
around as I wait.

ken



-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> On
Behalf Of pranav@xxxxxxxxxxxxxxxxx
Sent: Sunday, November 27, 2022 7:31 PM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Python: keeping libraries in virtual environments
updated

Hi all,

Are there any mechanisms to keep libraries in python  virtual environments
automatically  updated? I have had instances where I would be trying to
workaround a bug only to find that it has been resolved by an update.

I am using virtualenv via virtualwrapper.
Pranav

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: