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/
- ローカル環境(Mac)で試してみたところ、問題なくインストールできました。
- この方(http://blog.songs-inside.com/entry/diary/925)も同じ状況のようです。
解決方法についてご存知の方がいらっしゃいましたら、よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。