Build Python environment on Ubuntu (when pip is not the default)

The memorable Qiita first post is a memo for myself.

I want to touch Docker or Ansible The road I took when I tried to build a virtual environment for the time being.

Preparing vagrant

VirtualBox was originally included in my environment, so I adopted it as it is.

Download the vagrant image from the Official Site, After running and installing

$ vagrant init ubuntu/trusty64; vagrant up --provider virtualbox

Ubuntu enters.

As it is on the terminal of the mother ship

$ vagrant ssh

Log in with ssh.

Check the current status of Python

Check Python immediately.

$ python -V
Python 2.7.6
$ python3 -V
Python 3.4.3

It seems that 2.x series and 3.x series are included by default, so next is pip.

$ pip
The program 'pip' is currently not installed. To run 'pip' please ask your administrator to install the package 'python-pip'

Also,

$ which pip3

Since there is no reaction, it seems that Ubuntu taken from this box It seems that pip is not included.

pip installation

$ curl -kL https://bootstrap.pypa.io/get-pip.py | sudo python3

reference Introduction of Virtualenvwrapper Vagrant command list

Recommended Posts

Build Python environment on Ubuntu (when pip is not the default)
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build Python3 and OpenCV environment on Ubuntu 18.04
build Python on Ubuntu
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Build python3 environment with ubuntu 16.04
Build Python environment on Windows
Build python environment on windows
Test.py is not reflected on the web server in Python3.
How to build a new python virtual environment on Ubuntu
Build an Ubuntu python development environment on Google Cloud Platform
Prepare Python development environment on Ubuntu
Building a Python environment on Ubuntu
Build a python3 environment on CentOS7
OpenCV3 & Python3 environment construction on Ubuntu
# 3 Build a Python (Django) environment on AWS EC2 instance (ubuntu18.04) part2
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
Solution when HDMI audio output is not possible on Ubuntu 20.04.1 LTS
When the program pip installed on Mac / Marvericks does not work
python note: when easy_install is not available
Python 2.7, 3.4, 3.5 extension module build environment on Windows
Build a python environment on MacOS (Catallina)
Python virtual environment and packages on Ubuntu
Steps to install Python environment on Ubuntu
The one who is not on DVD
Created Ubuntu, Python, OpenCV environment on Docker
When the target is Ubuntu 16.04 in Ansible
Build Python environment with Anaconda on Mac
Build a Python + OpenCV environment on Cloud9
Notify using Notification Center when the execution environment is macOS in Python
Put an old JDK that is not supported on Ubuntu 16.04 Proxy environment not supported
A story when a beginner gets stuck trying to build a vim 8.2 + python 3.8.2 + lua plugin environment on Ubuntu 18.04.4 LTS
Simply build a Python 3 execution environment on Windows
[Latest] How to build Java environment on Ubuntu
Build a python environment with ansible on centos6
Build a Python environment on Mac (Mountain Lion)
Build a Python development environment on your Mac
[Venv] Create a python virtual environment on Ubuntu
Build Python3 + flask environment on GCP Compute Engine
Build a Kubernetes environment for development on Ubuntu
At the time of python update on ubuntu
How to build Java environment on Ubuntu (Linux)
Build a Python development environment on Raspberry Pi
Prepare the development environment for Python on AWS Cloud9 (pip install & time change)
[pandas] When specifying the default Index label in the at method, "" is not required
If you add sudo on ubuntu, it will be called the default python.
When the selected object in bpy.context.selected_objects is not returned
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Install Python3 on Mac and build environment [Definitive Edition]
When import tkinter is not possible on Mac OS X 10.11.3 (El Capitan) + pyenv + Python 3.5.1.
Investigate the cause when an error is thrown when python3.8 is not found when using lambda-uploader with python3.8
I got a UnicodeDecodeError when pip install on ubuntu
I made a Python3 environment on Ubuntu with direnv.
Build a GVim-based Python development environment on Windows 10 (1) Installation
How to build a Django (python) environment on docker
Make it easy to install the ROS2 development environment with pip install on Python venv
Build a Python environment on your Mac using pyenv
Troublesome story when using Python3 with VScode on ubuntu
There is a pattern that the program did not stop when using Python threading
The timing when the value of the default argument is evaluated is different between Ruby and Python.