atsakiのプロフィール

@atsaki atsaki
ありがとう数1
質問数0
回答数1
ベストアンサー数
1
ベストアンサー率
100%
お礼率
0%

  • 登録日2016/01/23
  • 性別男性
  • 都道府県埼玉県
  • easy_installでコマンドファイル削除

    python上で動くQuandlというソフトを使おうと思いまして、 debian 8.2 において python-numpy、python-pandas、python-setuptools をインストール後に $ easy_install Quandl でQuandlをインストールしました。しかし、 http://qiita.com/atsaki/items/33e52e882464e2e07688 に書いてある手順を試そうとしましたら $ python >>> import Quandl Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named Quandl >>> の段階でつまづきました。 pip でなくて古い easy_install を用いてQuandlをインストールしたのが原因かなと思いましたので、 http://www.task-notes.com/entry/20141214/1418543476 の手順に従って $ sudo easy_install -mxN Quandl $ sudo rm -rf /usr/local/lib/python2.7/dist-packages/Quandl-2.8.9-py2.7.egg の後にコマンドファイルを削除したいのですが、コマンドファイルがどこにあるかが分かりません。 $ sudo find /etc/ /lib64/ /lib/ /usr/ /bin/ /sbin/ /sys/ -iname "*quandl*" とやっても、何も見つかりません。 この状態で強引に pip からのQuandlインストールを試してみても $ sudo pip install Qunadl Downloading/unpacking Qunadl Could not find any downloads that satisfy the requirement Qunadl Cleaning up... No distributions at all found for Qunadl Storing debug log for failure in /root/.pip/pip.log となってしまいます。 テストとして、ライブ版を用いて $ easy_install Quandl の代わりに $ pip install Quandl でQuandlをインストールしてみましたら $ python >>> import Quandl >>> df = Quandl.get('GOOG/NASDAQ_GOOG') >>> df[:5] の後に7行くらいの結果がきちんと表示されました。 コマンドファイルの探し方など、ご教示下さい。 よろしくお願いします。 参考のためのログを下に載っけておきます。 $ easy_install quandl Searching for quandl Reading https://pypi.python.org/simple/quandl/ Best match: Quandl 2.8.9 Downloading *ttps://pypi.python.org/packages/source/Q/Quandl/Quandl-2.8.9.tar.gz#md5=7df17ae34272cad0b44e5ddb9ad48737 Processing Quandl-2.8.9.tar.gz Writing /tmp/easy_install-ilXPEt/Quandl-2.8.9/setup.cfg Running Quandl-2.8.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ilXPEt/Quandl-2.8.9/egg-dist-tmp-ONVuEi zip_safe flag not set; analyzing archive contents... Adding Quandl 2.8.9 to easy-install.pth file Installed /usr/local/lib/python2.7/dist-packages/Quandl-2.8.9-py2.7.egg Processing dependencies for quandl Finished processing dependencies for quandl $ sudo cat /root/.pip/pip.log ------------------------------------------------------------ /usr/bin/pip run on Sat Jan 23 00:32:15 2016 Downloading/unpacking Qunadl Getting page https://pypi.python.org/simple/Qunadl/ Could not fetch URL https://pypi.python.org/simple/Qunadl/: 404 Client Error: Not Found Will skip URL https://pypi.python.org/simple/Qunadl/ when looking for download links for Qunadl Getting page https://pypi.python.org/simple/ URLs to search for versions for Qunadl: * https://pypi.python.org/simple/Qunadl/ Getting page https://pypi.python.org/simple/Qunadl/ Could not fetch URL https://pypi.python.org/simple/Qunadl/: 404 Client Error: Not Found Will skip URL https://pypi.python.org/simple/Qunadl/ when looking for download links for Qunadl Could not find any downloads that satisfy the requirement Qunadl Cleaning up... No distributions at all found for Qunadl Exception information: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File "/usr/lib/python2.7/dist-packages/pip/index.py", line 277, in find_requirement raise DistributionNotFound('No distributions at all found for %s' % req) DistributionNotFound: No distributions at all found for Qunadl

    • ベストアンサー
    • noname#214079
    • Linux系OS
    • 回答数1