Ubuntu Python3環境設定

qiita.com

Python in Visual Studio Code – April 2018 Release – Python at Microsoft

sudo apt install git
sudo apt install python3-pip python3-dev python3-tk
sudo apt install python3-bs4 python3-requests python3-html5lib python3-scrapy
sudo apt install jupyter
sudo apt install python3-numpy python3-pandas python3-matplotlib python3-seaborn python3-openpyxl
sudo apt install python3-yapf pylint3
mkdir workspace
cd workspace
pip3 install pipenv --user
source ~/.profile

pipenv --three
pipenv lock --pre

pipenv install beautifulsoup4
pipenv install requests
pipenv install requests-html
pipenv install html5lib
pipenv install lxml

pipenv install --dev pylint
pipenv install --dev black

pipenv install tensorflow
pipenv install keras
pipenv install jupyter
pipenv install matplotlib
pipenv install seaborn
pipenv install pandas
pipenv install openpyxl


pipenv install selenium
pipenv install --dev flake8
pipenv install --dev pycodestyle
pipenv install --dev pydocstyle

pipenv install --dev autopep8
pipenv install --dev yapf

Pipfile

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
"beautifulsoup4" = "*"
requests = "*"
"html5lib" = "*"
lxml = "*"
selenium = "*"
tensorflow = "*"
keras = "*"
jupyter = "*"
matplotlib = "*"
seaborn = "*"
pandas = "*"
openpyxl = "*"

[dev-packages]
pylint = "*"
"flake8" = "*"
pycodestyle = "*"
pydocstyle = "*"
"autopep8" = "*"
yapf = "*"

[requires]
python_version = "3.6"

[scripts]
fix = "yapf -i -r ."