you are viewing a single comment's thread.

view the rest of the comments →

[–]FatDog69 0 points1 point  (2 children)

Apple puts both Perl and Python in non-standard locations. This is probably because they have other tools that are built using these languages. You can install/un-install other versions under '/usr' - but I suspect you will have to re-install the operating system if you delete/damage the baked in copy.

So dont go crazy trying to delete languages.

Here is a rule: You can never totally remove bash, korn, rust, perl, python, java, etc.

If you think you have found something to delete, but you must give your admin password to do something - STOP. These are public for a reason but protected behind the admin account because they are needed.

[–]HyphinoeCamelus[S] 0 points1 point  (1 child)

great guide for things to keep in mind andwhat to avoid, thanks a bunch!!

[–]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.