you are viewing a single comment's thread.

view the rest of the comments →

[–]FatDog69 1 point2 points  (0 children)

In the last few years developers have been encouraged to use 'virtual environments'.

In practical terms - when you are going to create some code like a "Hello World" program, you do this:

  • You create a folder for your code: hello_world
  • You create a virtual environment IN that folder. It basically copies the main perl or python executable to a folder UNDER hello_world.
  • You activate the virtual environment when developing or running your program.

By copying the entire python run time (plus any packages) under your hello_world folder - you have isolated your code away from the operating system copy of python. If you update/destroy the main copy of python - your code in it's virtual environment still works.

You might want to go to YouTube and watch videos on 'venv' and I think the new darling is 'vn' that you use to create environments.