curl https://gist.githubusercontent.com/ryanpcmcquen/7ef4bf8dea788f73d82397c2b9d1d796/raw/udev_dpkg_workaround.sh | bash sudo apt-get update sudo apt-get install python3.6 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.4 1 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2 sudo update-alternatives --config python3 wget https://bootstrap.pypa.io/ez_setup.py sudo -H python3 ez_setup.py wget https://bootstrap.pypa.io/get-pip.py sudo -H python3 get-pip.py sudo -H pip3 install pipenv sudo -H pip3 install setuptools pipenv --three
PYTHONPATHに「:/usr/local/lib/python3.6/dist-packages」を追加
import sys print("sys.version=", sys.version)
# バージョン確認 python3 -V pip3 -V