[MEMO] [Development environment construction] Python

Introduction

Development environment

Linux

About this article

This memo focuses on how-tos for environment construction and error resolution.

python

things to do

  1. Put pip in the original python (probably python2.7). sudo curl -kL https://bootstrap.pypa.io/get-pip.py | python

  2. Insert pyenv.

  3. Put the required python locally in pyenv.

  4. Put pipenv in your local python.

First, put the packages required for the build

libffi-dev If you don't include libffi-dev, you will always face build errors like ModuleNotFoundError: No module named'_ctypes' when you include the package, so include it.

Install all at once


sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils libffi-dev

pyenv

pyenv memo

pipenv

pipenv memo

JupyterNotebook Notes on Jupyter Notebook

pip

Export the package list

pip freeze > requirements.txt

Install all at once

pip3 install -r requirements.txt

Uninstall all at once

pip3 uninstall -r requirements.txt

Recommended Posts

[MEMO] [Development environment construction] Python
Emacs Python development environment construction memo
Python development environment construction
python2.7 development environment construction
Django development environment construction memo
[MEMO] [Development environment construction] wine
Environment construction (python)
Python --Environment construction
Python environment construction
python environment construction
Python environment construction memo on Windows 10
Python environment construction memo on Mac
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
[MEMO] [Development environment construction] Jupyter Notebook
Vim + Python development environment setting memo
Ubuntu Desktop 20.04 development environment construction memo
My python environment memo
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
python windows environment construction
ConoHa environment construction memo
homebrew python environment construction
Python3 + venv + VSCode + macOS development environment construction
About Python development environment
BigGorilla environment construction memo
Mac OS X development environment construction memo
Development environment in Python
Anaconda environment construction memo
Mac environment construction Python
[Memo] Django development environment
Python environment construction @ Win7
Windows + gVim + Poetry python development environment construction
Python + Anaconda + Pycharm environment construction
Python environment construction (Windows10 + Emacs)
[Memo] Construction of cygwin environment
Python environment construction For Mac
Anaconda3 × Pycharm environment construction memo
Python3 environment construction (for beginners)
Organize your Python development environment
Python environment construction and TensorFlow
[ev3dev × Python] Build ev3dev development environment
Python environment construction under Windows7 environment
Ubuntu18.04 Development environment creation memo
[For organizing] Python development environment
django project development environment construction
Environment construction of python2 & 3 (OSX)
Development environment load measurement memo
Python memo
python memo
Python memo
python memo
Python development environment construction 2020 [From Python installation to poetry introduction]
Python memo
QGIS3 Python plugin development environment construction with VSCode (macOS)
python memo (for myself): About the development environment virtualenv
Python memo
Python memo
Environment construction of python and opencv
Anaconda python environment construction on Windows 10
Python + Unity Reinforcement learning environment construction
[Personal memo] Python virtual environment command memo