Ubuntu 18.04 Pyenv Build Python 3.7 Common Error
February 23, 2021Install Python 3.7 via pyenv
pyenv install 3.7.4
TLDR
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev
Optional
sudo apt-get install tk-dev
Common Errors
configure: error: no acceptable C compiler found in $PATH
sudo apt-get update
sudo apt-get install build-essential
zipimport.ZipImportError: can't decompress data; zlib not available
sudo apt-get install zlib1g-dev
ModuleNotFoundError: No module named '_ctypes'
sudo apt-get install libffi-dev
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
sudo apt install libssl-dev
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
sudo apt install libbz2-dev
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
sudo apt install libreadline-dev
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
sudo apt install libsqlite3-dev
UserWarning: Could not import the lzma module. Your installed Python is incomplete
sudo apt-get install liblzma-dev
References:
- algo-trading
- algolia
- analytics
- android
- android-ktx
- android-permission
- android-studio
- apps-script
- bash
- binance
- bootstrap
- bootstrapvue
- chartjs
- chrome
- cloud-functions
- coding-interview
- contentresolver
- coroutines
- crashlytics
- crypto
- css
- dagger2
- datastore
- datetime
- docker
- eslint
- firebase
- firebase-auth
- firebase-hosting
- firestore
- firestore-security-rules
- flask
- fontawesome
- fresco
- git
- github
- glide
- godot
- google-app-engine
- google-cloud-storage
- google-colab
- google-drive
- google-maps
- google-places
- google-play
- google-sheets
- gradle
- html
- hugo
- inkscape
- java
- java-time
- javascript
- jetpack-compose
- jetson-nano
- kotlin
- kotlin-serialization
- layout
- lets-encrypt
- lifecycle
- linux
- logging
- lubuntu
- markdown
- mate
- material-design
- matplotlib
- md5
- mongodb
- moshi
- mplfinance
- mysql
- navigation
- nginx
- nodejs
- npm
- nuxtjs
- nvm
- pandas
- payment
- pip
- pwa
- pyenv
- python
- recylerview
- regex
- room
- rxjava
- scoped-storage
- selenium
- social-media
- ssh
- ssl
- static-site-generator
- static-website-hosting
- sublime-text
- ubuntu
- unit-test
- uwsgi
- viewmodel
- viewpager2
- virtualbox
- vue-chartjs
- vue-cli
- vue-router
- vuejs
- vuelidate
- vuepress
- web-development
- web-hosting
- webpack
- windows
- workmanager
- wsl
- yarn