質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

Q&A

解決済

1回答

469閲覧

pipのパッケージインストールが失敗する

sumrin

総合スコア24

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

0グッド

1クリップ

投稿2018/10/24 06:57

Amazon EC2でLinuxサーバを利用しています。
ここで、pip(v18.1)を使ってパッケージ(LinkChecker)をインストールしようとすると、
下記のようなエラーが出て、インストールできません。

$ sudo /usr/local/bin/pip install LinkChecker Collecting LinkChecker Using cached https://files.pythonhosted.org/packages/43/59/31baf302792306bde0825e8631a74c7f668bc47b3748fc4471c281885bb6/LinkChecker-9.3.tar.gz Requirement already satisfied: requests>=2.2.0 in /usr/local/lib/python2.7/site-packages (from LinkChecker) (2.19.1) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/site-packages (from requests>=2.2.0->LinkChecker) (3.0.4) Requirement already satisfied: urllib3<1.24,>=1.21.1 in /usr/local/lib/python2.7/site-packages (from requests>=2.2.0->LinkChecker) (1.23) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/site-packages (from requests>=2.2.0->LinkChecker) (2018.8.24) Requirement already satisfied: idna<2.8,>=2.5 in /usr/local/lib/python2.7/site-packages (from requests>=2.2.0->LinkChecker) (2.7) Building wheels for collected packages: LinkChecker Running setup.py bdist_wheel for LinkChecker ... error Complete output from command /usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-9jEuz_/LinkChecker/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-mKcoia --python-tag cp27: creating /tmp/pip-install-9jEuz_/LinkChecker/_LinkChecker_configdata.py (中略) copying third_party/dnspython/dns/rdtypes/IN/APL.py -> build/lib.linux-x86_64-2.7/linkcheck_dns/dns/rdtypes/IN running build_ext error: [Errno 2] No such file or directory ---------------------------------------- Failed building wheel for LinkChecker Running setup.py clean for LinkChecker Failed to build LinkChecker Installing collected packages: LinkChecker Running setup.py install for LinkChecker ... error Complete output from command /usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-9jEuz_/LinkChecker/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-JSxuq5/install-record.txt --single-version-externally-managed --compile: creating /tmp/pip-install-9jEuz_/LinkChecker/_LinkChecker_configdata.py (中略) copying third_party/dnspython/dns/rdtypes/IN/APL.py -> build/lib.linux-x86_64-2.7/linkcheck_dns/dns/rdtypes/IN running build_ext error: [Errno 2] No such file or directory ---------------------------------------- Command "/usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-9jEuz_/LinkChecker/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-JSxuq5/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-9jEuz_/LinkChecker/

解決方法についてご存知の方がいらっしゃいましたら、よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

ご提示のログは情報がすくないですね。(質問者様の落ち度ではなく、インストールスクリプトが情報を出してくれてないと言う意味で)

現状、何かしらのネイティブエクステンションをビルドしようとして、何かのファイルが無い、としか読めません。

まずは、verboseオプションをつけて再度インストールを試み、何か有用な情報が出るかを試すのが良さそうです。

Bash

1$ sudo /usr/local/bin/pip install -v LinkChecker

投稿2018/10/24 23:21

編集2018/10/24 23:25
kazto

総合スコア7196

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問