{"componentChunkName":"component---src-templates-post-tsx","path":"/posts/2019/07/macos-ruby-python/","result":{"data":{"markdownRemark":{"fields":{"slug":"/2019/07/macos-ruby-python/"},"frontmatter":{"title":"Python and Ruby is pre-installed in macOS, but ...","tag":["macOS","python","ruby","node.js","javascript"],"image":"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRzRPgFnsH3URbSEs5o9rM9BxY-JcGggifXVXEx7bsUVk3KW9QA"},"correctedDateEpoch":1562432400000,"html":"<p>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.</p>\n<p>For Python, <a href=\"https://github.com/pyenv/pyenv\">pyenv</a> and there is <a href=\"https://docs.python-guide.org/dev/virtualenvs/\">Virtual Environment</a>, which is quite opinionated. I use <a href=\"https://poetry.eustace.io/\">poetry</a>, though. I also tried to fit <code>/.venv/</code> into the project folder, which requires additional settings.</p>\n<!-- excerpt_separator -->\n<p>Also, System's Python doesn't seem to be protected with <code>sudo</code>... Unprotected is bad, and you can do something wrong...</p>\n<p>Of course, <a href=\"https://www.jetbrains.com/pycharm/\">PyCharm</a> makes this less of a fuss, and you don't have to choose between Pipenv and Poetry anymore.</p>\n<p>For Ruby, you should use either <a href=\"https://rvm.io/\">rvm</a> or <a href=\"https://github.com/rbenv/rbenv\">rbenv</a>, but there doesn't seem to be a concept of foldered Virtual Environment. However, if you don't use <code>rvm</code> or <code>rbenv</code>, you might have to sudo to install <code>gem</code>, which is bad.</p>\n<p>JavaScript's <a href=\"https://nodejs.org/en/\">Node.js</a>, although aren't pre-installed, also has a problem of <code>sudo npm install -g</code>. If you don't want to <code>sudo</code>, you will have to properly install <a href=\"https://github.com/nvm-sh/nvm\">nvm</a>.</p>"}},"pageContext":{"slug":"/2019/07/macos-ruby-python/"}}}