pipコマンドを有効にする
1 2 |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py --user |
PATHを編集する
PATH
1 2 |
PATH=$PATH:/home/users/0/(user-name)/.local/bin export PATH |
.bash_profileを作成
1 |
vi .bash_profile |
1 2 3 4 5 |
[her.jp-kei@users428 .local]$ ls -l total 8 drwxr-xr-x 3 xxxxxx LolipopUser 4096 2018-08-03 01:11 bin drwx------ 3 xxxxxx LolipopUser 4096 2018-08-02 20:10 lib [her.jp-kei@users428 .local]$ |
pipコマンドを試す
1 |
pip install bottle --user |
1 |
pip install flask --user |
1 2 3 4 5 6 7 8 9 10 11 |
pip list Package Version ------------ ------- bottle 0.12.13 click 6.7 Flask 1.0.2 itsdangerous 0.24 Jinja2 2.10 MarkupSafe 1.0 MySQL-python 1.2.3 pip 18.0 |
pythonを実行して試す
1 2 3 4 5 6 |
python Python 3.4.1 (default, May 8 2017, 14:41:02) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import bottle,flask >>> |
大成功でした。