I’m trying to get a working version of python 3.7 to run in the machine executor.
I’ve tried the following, but am getting errors:
- compile from source
- can’t find the resulting .so python file
- installation via pyenv
- ssl library error
- installation via the deadsnakes ppa
- ssl library error
Here is a sample of my installation script, this currently fails due to the ‘_ssl’ library not being linked/installed properly.
version: 2
jobs:
build:
machine: true
working_directory: ~/repo
steps:
- checkout
- run:
name: install ubuntu build reqs
command: |
sudo apt update && sudo apt upgrade -y
sudo apt install build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev
- run:
name: install python 3.7
command: |
sudo add-apt-repository --yes ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.7
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.7 get-pip.py
sudo python3.7 -m pip install --upgrade pip setuptools wheel
sudo python3.7 -m pip install pipenv
Has anyone gotten python 3.7 installed and working in the machine executor?