ubuntu(20.04 LTS)で端末からunittest2をインストールしようとしています。
pip install unittest2
と打ち込むと、
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: unittest2 in ./.local/lib/python2.7/site-packages (1.1.0) Requirement already satisfied: argparse in /usr/lib/python2.7 (from unittest2) (1.2.1) Requirement already satisfied: six>=1.4 in ./.local/lib/python2.7/site-packages (from unittest2) (1.15.0) Requirement already satisfied: traceback2 in ./.local/lib/python2.7/site-packages (from unittest2) (1.4.0) Requirement already satisfied: linecache2 in ./.local/lib/python2.7/site-packages (from traceback2->unittest2) (1.0.0)
と表示されてしまいます。
インストールできない原因と
インストールの仕方を教えてください。
よろしくおねがいします。
環境
ubuntu(20.04 LTS)
回答1件
あなたの回答
tips
プレビュー