Python environment tool comparison chart for Rubyist

Introduction

Python version / library management can be confusing. It seems easy for Rubyist to think "What do you say in Ruby?", So I will try to summarize the current mainstream Python environment management at my own discretion.

Simplified chart

Target Ruby Python
version rbenv pyenv
Library gem pip
Library dependent/Virtual environment bundler pipenv

version control

Rubyist has the same rbenv, and Python has pyenv. The usage is basically the same. rbenv requires a submodule called ruby-build, but pyenv does not.

Library management

pip comes standard with Python 2.7.9 / 3.4 and later.

Library dependent / virtual environment

There are a lot of Python, but pipenv, which is close to Bundler, seems to be good, so let's compare it. (Strictly different, but ...)

bundler pipenv
Management file Gemfile Pipfile
lock file Gemfile.lock Pipfile.lock
Library installation from lock file bundle install pipenv sync
Virtual environment execution bundle exec pipenv run
Virtual environment path(Default) ./vendor/bundle ~/.local/share/virtualenvs/#{Project directory name}-#{Hash value}

Recommended Posts

Python environment tool comparison chart for Rubyist
Python environment for projects
Python environment construction For Mac
Python3 environment construction (for beginners)
[For organizing] Python development environment
Install Cheminformatics Tool RDKit for Python
Python development environment options for May 2020
Emacs settings for Python development environment
Created AtCoder test tool for Python
Python3 TensorFlow for Mac environment construction
Build an environment for Blender built-in Python
Python visualization tool for data analysis work
Let's create a virtual environment for Python
Creating amateur python environment settings (for MAC)
[Mac] Building a virtual environment for Python
A tool for easily entering Python code
Building a Python development environment for AI development
2016-10-30 else for Python3> for:
Selenium + WebDriver (Chrome) + Python | Building environment for scraping
First Python 3 ~ First comparison ~
Python environment construction
python environment settings
Building an environment for executing Python scripts (for mac)
python windows environment
Building an Anaconda environment for Python with pyenv
Environment construction (python)
Image Processing with Python Environment Setup for Windows
python environment construction
Python --Environment construction
Commands for creating a python3 environment with virtualenv
Procedure for creating a Python quarantine environment (venv environment)
Python environment construction
A memo for creating a python environment by a beginner
python environment construction
Comparison of Python and Ruby (Environment / Grammar / Literal)
Tool to make mask image for ETC in Python
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
Write about building a Python environment for writing Qiita Qiita
Building a Docker working environment for R and Python
Python 3.4 Create Windows7-64bit environment (for financial time series analysis)
Build a python environment for each directory with pyenv-virtualenv
Summary of python environment settings for myself [mac] [ubuntu]
Use Python installed with pyenv for PL / Python execution environment
Building an environment for natural language processing with Python
Procedure for building a CDK environment on Windows (Python)
[Python] Django environment construction (pyenv + pyenv-virtualenv + Anaconda) for macOS
python package dependencies and virtual environment management tool Poetry
Building a Python environment for programming beginners (Mac OS)
Use AWS SDK for Python (boto) under Proxy environment
python memo (for myself): About the development environment virtualenv
Memo for building a machine learning environment using Python
About Python for loops
[Python] Get environment variables
Python SDP runtime comparison
Python basics ② for statement
Unification of Python environment
python windows environment construction
homebrew python environment construction
Python development environment construction
python virtual environment Pipenv
About Python, for ~ (range)