AWS cloud9環境にて
botの研究を行なっています。
pipを使い、
pybitflyer
をインストールしたいのですが、次のエラーが出て前に進めずにいます。
pkg_resources.DistributionNotFound: The 'pip==9.0.3' distribution was not found and is required by the application
対策方法をご教授頂きたいです。
よろしくお願いいたします。
コード
ec2-user:~/environment $ sudo pip-3.6 install pybitflyer Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 578, in _build_master ws.require(__requires__) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 895, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.VersionConflict: (pip 18.0 (/usr/local/lib/python3.6/site-packages), Requirement.parse('pip==9.0.3')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/pip-3.6", line 6, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3105, in <module> @_call_aside File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3089, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3118, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 580, in _build_master return cls._build_from_requirements(__requires__) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 593, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 781, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'pip==9.0.3' distribution was not found and is required by the application ec2-user:~/environment $ sudo pip-3.6 install pybitflyer Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 578, in _build_master ws.require(__requires__) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 895, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.VersionConflict: (pip 18.0 (/usr/local/lib/python3.6/site-packages), Requirement.parse('pip==9.0.3')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/pip-3.6", line 6, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3105, in <module> @_call_aside File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3089, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3118, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 580, in _build_master return cls._build_from_requirements(__requires__) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 593, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 781, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'pip==9.0.3' distribution was not found and is required by the application ec2-user:~/environment $
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。