Python 3.4 pyvenv fails on Ubuntu 14.04 LTS

When I try to make a venv for Python 3.4 ...

$ pyvenv-3.4 <directory>
Error: Command '['<directory>/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

I get an error.

If you execute the command directly, you will get the following error, so ʻensure pip` module is missing.

<directory>/bin/python3.4: No module named ensurepip

It can't be helped, so I made venv with the --without-pip option and then manually installed pip to avoid it.

$ pyvenv-3.4 --without-pip <directory>
$ source <directory>/bin/activate

#Installation of setuptools
$ curl -O https://pypi.python.org/packages/source/s/setuptools/setuptools-3.4.4.tar.gz
$ tar xvfz setuptools-3.4.4.tar.gz
$ cd setuptools-3.4.4/
$ python setup.py install

#pip installation
$ curl -O https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz
$ tar xvfz pip-1.5.4.tar.gz
$ cd pip-1.5.4/
$ python setup.py install

Rebuilding venv is not so troublesome, so I'm waiting for a fix while avoiding it above.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732703

Recommended Posts

Python 3.4 pyvenv fails on Ubuntu 14.04 LTS
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
build Python on Ubuntu
Install Python 3.3 on Ubuntu 12.04
How to run MeCab on Ubuntu 18.04 LTS Python
Set up Python 3.4 on Ubuntu
Use matplotlib on Ubuntu 12 & Python
USB Wifi on Ubuntu 20.04LTS
Put Python 3.x on Ubuntu
Install OpenCV on Ubuntu + python
Introducing TensorFlow on Ubuntu + Python 2.7
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Prepare Python development environment on Ubuntu
Building a Python environment on Ubuntu
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Introducing Python using pyenv on Ubuntu 20.04
Preparing python using vscode on ubuntu
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install confluent-kafka for Python on Ubuntu
If Python 3.5.0 installation fails on Mac
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
OpenCV3 & Python3 environment construction on Ubuntu
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
When creating an environment that uses python django on Ubuntu 12.04 LTS
Build Python3 and OpenCV environment on Ubuntu 18.04
Python virtual environment and packages on Ubuntu
Steps to install Python environment on Ubuntu
Created Ubuntu, Python, OpenCV environment on Docker
[Python] Japanese localization of matplotlib on Ubuntu
Python on Windows
twitter on python3
Shebang on Ubuntu 20.04
python on mac
Python on Windbg
Ubuntu18.04.05 Creating a python virtual environment in LTS
Build python environment with pyenv on EC2 (ubuntu)
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Install python package in personal environment on Ubuntu
[Procedure memo] Install Python3 + OpenSSL locally on Ubuntu
Python development on Ubuntu on AWS EC2 (using JupyterLab)
[Venv] Create a python virtual environment on Ubuntu
At the time of python update on ubuntu
Install MongoDB on Ubuntu 16.04 and operate via python
Install Ubuntu 20.04 LTS (Server) 64bit version on RaspberryPi3B +
Install NVIDIA-driver (GeForce RTX 2070 SUPER), cuda 10.1, cudnn 7.6 on Ubuntu 18.04.3 LTS + python environment construction
Python conda on cygwin
Install TensorFlow on Ubuntu
Install python on WSL
Install the latest version of CMake on Ubuntu 18.04.4 LTS
PyOpenGL setup on Python 3
Install Python on Pidora.
Install Scrapy on python3
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Install Python on Mac
Install Python 3 on Mac
Install PySide2 on Ubuntu
Install Python3.4 on CentOS 6.6
Install Docker (Ubuntu 18.04 LTS)
Use pyvenv on Windows
I made a Python3 environment on Ubuntu with direnv.