Python Forum
copy a virtual environment to a new system
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
copy a virtual environment to a new system
#1
if i use venv to create a virtual environment can it be copied (like with rsync) as part of copying all home directories, to a new system running a newer version of python? for example i am currently running ubuntu 18.04 that has python 3.6 and next year (i'm making plans, now) i will install ubuntu 20.04 with a repartition and reformat of all partitions. everything will be backed up to each of three 2TB USB hard drives plus AWS S3. i expect 20.04 to have python 3.7 or later (whatever is out at package version freeze). i am looking at creating python virtual environments and have read about people having trouble when the system python is upgraded (other than a bugfix). i still don't have full details about how a virtual environment works. apparently, activating it is required every time a new shell is started so i presume i modifies shell settings which could be a problem for me since i run a very modified shell.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
copy a virtual environment to a new system - by Skaperen - Sep-17-2019, 03:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  virtual environment questions Skaperen 2 1,737 May-21-2019, 08:11 PM
Last Post: Skaperen
  PyCharm virtual environment (venv) issues? j.crater 1 2,284 Aug-14-2018, 10:22 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020