Linux
This memo focuses on how-tos for environment construction and error resolution.
python
Put pip in the original python (probably python2.7). sudo curl -kL https://bootstrap.pypa.io/get-pip.py | python
Insert pyenv.
Put the required python locally in pyenv.
Put pipenv in your local python.
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
pipenv
JupyterNotebook Notes on Jupyter Notebook
pip
pip freeze > requirements.txt
pip3 install -r requirements.txt
pip3 uninstall -r requirements.txt
Recommended Posts