Python and Ruby is pre-installed in macOS, but ...
Just don't install anything into System's programming languages, unless you have a virtual environment. Also, you can manage Python and Ruby's versions.
Also, System's Python doesn't seem to be protected with
sudo... Unprotected is bad, and you can do something wrong...
Of course, PyCharm makes this less of a fuss, and you don't have to choose between Pipenv and Poetry anymore.
For Ruby, you should use either rvm or rbenv, but there doesn't seem to be a concept of foldered Virtual Environment. However, if you don't use
rbenv, you might have to sudo to install
gem, which is bad.