LoginSignup
2
1

More than 5 years have passed since last update.

Linux mint 19.1(Tessa)にPython3.7環境を構築

Posted at

はじめに

未来電子テクノロジーでインターンをしている<@kento_o>です。
今回のアウトプットでは、Linux mint 19.1(Tessa)にPython3.7とDjango開発環境構築を行ったログを残します。

OS・CPU

・Linux mint 19.1 LTS(Tessa)
・x86_64

下ごしらえ

$ sudo apt-get update
$ sudo apt-get upgrade

Linuxに新しい環境を構築する上では定石となるコマンドを入力します。

Python3.7を導入

まずはインストール可能なパッケージをsearchします。

$ sudo apt search python3.7-

自分の環境では

p   libpython3.7-dbg                - Debug Build of the Python Interpreter (ver
p   libpython3.7-dbg:i386           - Debug Build of the Python Interpreter (ver
p   libpython3.7-dev                - Header files and a static library for Pyth
p   libpython3.7-dev:i386           - Header files and a static library for Pyth
p   libpython3.7-minimal            - Minimal subset of the Python language (ver
p   libpython3.7-minimal:i386       - Minimal subset of the Python language (ver
p   libpython3.7-stdlib             - Interactive high-level object-oriented lan
p   libpython3.7-stdlib:i386        - Interactive high-level object-oriented lan
p   libpython3.7-testsuite          - Testsuite for the Python standard library 
p   python3.7-dbg                   - Debug Build of the Python Interpreter (ver
p   python3.7-dbg:i386              - Debug Build of the Python Interpreter (ver
v   python3.7-dbg:any               -                                           
p   python3.7-dev                   - Header files and a static library for Pyth
p   python3.7-dev:i386              - Header files and a static library for Pyth
v   python3.7-dev:any               -                                           
v   python3.7-distutils             -                                           
p   python3.7-doc                   - Documentation for the high-level object-or
v   python3.7-doc:i386              -                                           
p   python3.7-examples              - Examples for the Python language (v3.7)   
v   python3.7-gdbm                  -                                           
v   python3.7-gdbm:i386             -                                           
v   python3.7-lib2to3               -                                           
p   python3.7-minimal               - Minimal subset of the Python language (ver
p   python3.7-minimal:i386          - Minimal subset of the Python language (ver
v   python3.7-minimal:any           -                                           
v   python3.7-tk                    -                                           
v   python3.7-tk:i386               -                                           
p   python3.7-venv                  - Interactive high-level object-oriented lan
p   python3.7-venv:i386             - Interactive high-level object-oriented lan
v   python3.7-venv:any           

このようなログが残りました。
この中から必要なパッケージである「Python3.7」及び「Python3.7 dev」のインストールを行います。

インストール

以下のコマンドを入力します。

$ sudo apt-get install python3.7 python3.7-dev

成功しました。

$ python3.7 --version  
Python 3.7.1

まとめ

Python3.7環境が構築完了しました。
これからpipやdjangoの環境を構築し、学習を進めていきます。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1