ubuntu18.04にpipをインストールしてpipenvをインストールしたいのですがどちらの方法がよいのでしょうか?
1の場合だとaptでインストールした後pipenvのあとpip3のpathが変わっています。
aptでインストールしたのを消すべき?
2の場合だと"/home/barobaro/.local/bin"をPATHに追加しなさいと警告がでます。
pip3ではなくpipなのも気になります。
どちらよいのでしょうか?
1. python3-pip
bash
1sudo apt install python3-pip 2 3pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) 4 5pip3 install pipenv --user 6 7pip3 --version 8 9Traceback (most recent call last): 10 File "/usr/bin/pip3", line 9, in <module> 11 from pip import main 12 13source ~/.profile 14 15pip3 --version 16pip 18.1 from /home/barobaro/.local/lib/python3.6/site-packages/pip (python 3.6)
2. get-pip.py
bash
1sudo apt install python3-distutils 2wget https://bootstrap.pypa.io/get-pip.py 3sudo -H python3 get-pip.py 4 5pip --version 6pip 18.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6) 7 8pip install pipenv --user 9 10 The script virtualenv is installed in '/home/barobaro/.local/bin' which is not on PATH. 11 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. 12 The script virtualenv-clone is installed in '/home/barobaro/.local/bin' which is not on PATH. 13 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. 14 The scripts pipenv and pipenv-resolver are installed in '/home/barobaro/.local/bin' which is not on PATH. 15 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
参考リンク
https://www.python.jp/install/ubuntu/index.html
http://icchy.hatenablog.jp/entry/2018/04/17/064443
https://qiita.com/koshian2/items/9763be71c1b3db209288
あなたの回答
tips
プレビュー