Ubuntu Python3環境設定

qiita.com

Python in Visual Studio Code – April 2018 Release - Python

sudo apt install git

sudo apt install python3-pip python3-dev python3-tk python3-venv python3-bs4 python3-requests python3-html5lib python3-lxml jupyter python3-numpy python3-pandas python3-matplotlib python3-seaborn python3-openpyxl black

mkdir workspace
cd workspace

python3 -m venv scraping
source scraping/bin/activate

pip3 install requests
pip3 install beautifulsoup4
pip3 install lxml
pip3 install html5lib
pip3 install black
pip3 install pylint
pip3 install pipenv --user
source ~/.profile

pipenv --three
pipenv lock --pre

pipenv install beautifulsoup4
pipenv install requests
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 ."