Pythonのエラーメッセージ

このQ&Aのポイント
  • cross simのインストールでエラーが発生しました
  • インストール時にエラーメッセージが表示されました
  • 解決策をご存じの方は教えてください
回答を見る
  • ベストアンサー

pythonのエラーメッセージ

cross simをインストールしようとしたら以下のエラーメッセージが表示されます。アップグレードもしたのですが状況が変わりません。 どなたか解決策をご存じ方がいれば教えて頂けますでしょうか (Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ ERROR: Could not find a version that satisfies the requirement cross_sim==0.2.0 (from versions: none) ERROR: No matching distribution found for cross_sim==0.2.0).

  • Python
  • 回答数3
  • ありがとう数0

質問者が選んだベストアンサー

  • ベストアンサー
回答No.1

https://us-python.pkg.dev/colab-wheels/public/simple/ このリポジトリが404を出してるみたいなので、それが原因かも。 別のリポジか、クローンを指定してみるのはありかもです。 (そもそも、こちらでは、このアドレスが正しいのかすらも判断はできませんで)

その他の回答 (2)

回答No.3

https://github.com/sandialabs/cross-sim のことなら、readme.md の Getting Started に書いてある通り git を使ってインストールすればよいと思います。 PyPI にはもうないようです。

回答No.2

Could not find a version that satisfies the requirement エラー: 要件を満たすバージョンが見つかりませんでした。cross_sim==0.2.0 (from versions: none) バージョン見つからない エラー: cross_sim==0.2.0 に一致するディストリビューションが見つかりません)。 とでてますね。

関連するQ&A

  • pythonモジュールがインストール出来ない

    SSLやpyAMFなどを python setup.py install でインストールしようとしているのですが、 エラーが出てしまいます。 pythonは2.6だとできるようですがどうしても2.5xを使う必要があります。 python25-appleをデフォルトのpythonにしています。 エラーの詳細は次のようになります。 User-no-MacBook-2:PyAMF-0.6.1 user$ python setup.py install 略 no previously-included directories found matching 'doc/build' no previously-included directories found matching 'doc/_build' warning: no previously-included files matching '*.swf' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution 略 gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c cpyamf/amf0.c -o build/temp.macosx-10.3-i386-2.5/cpyamf/amf0.o cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" lipo: can't figure out the architecture type of: /var/folders/dE/dEVcnZLtFw8U1ZFnQjT42E+++TI/-Tmp-//ccz4QQFi.out error: command 'gcc' failed with exit status 1 始めはMacOSX10.4u.sdkがないと言われ、インストールしてみると そのエラーは出なくなりましたが上記のような状態です。 これは使っているgccコンパイラに問題があるということなのでしょうか? どなたかアドバイスをお願いします。

  • 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

  • [Erroer] pylear2 tutorial

    度々申し訳ありません。 cd pylearn2 python setup.py developの実行を行い、 running develop running egg_info writing requirements to pylearn2.egg-info/requires.txt writing pylearn2.egg-info/PKG-INFO writing top-level names to pylearn2.egg-info/top_level.txt writing dependency_links to pylearn2.egg-info/dependency_links.txt reading manifest file 'pylearn2.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pylearn2.egg-info/SOURCES.txt' running build_ext Creating /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylearn2.egg-link (link to .) pylearn2 0.1dev is already the active version in easy-install.pth Installed /Users/k11053kk/pylearn2 Processing dependencies for pylearn2==0.1dev Searching for argparse==1.2.2 Best match: argparse 1.2.2 Processing argparse-1.2.2-py2.7.egg argparse 1.2.2 is already the active version in easy-install.pth Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/argparse-1.2.2-py2.7.egg Searching for PyYAML==3.11 Best match: PyYAML 3.11 Processing PyYAML-3.11-py2.7-macosx-10.6-intel.egg PyYAML 3.11 is already the active version in easy-install.pth Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyYAML-3.11-py2.7-macosx-10.6-intel.egg Searching for Theano==0.6.0 Best match: Theano 0.6.0 Processing Theano-0.6.0-py2.7.egg Theano 0.6.0 is already the active version in easy-install.pth Installing theano-cache script to /Library/Frameworks/Python.framework/Versions/2.7/bin Installing theano-nose script to /Library/Frameworks/Python.framework/Versions/2.7/bin Installing theano-test script to /Library/Frameworks/Python.framework/Versions/2.7/bin Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg Searching for numpy==1.7.2 Best match: numpy 1.7.2 Adding numpy 1.7.2 to easy-install.pth file Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Searching for scipy==0.16.0.dev-3a00319 Best match: scipy 0.16.0.dev-3a00319 Adding scipy 0.16.0.dev-3a00319 to easy-install.pth file Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Finished processing dependencies for pylearn2==0.1dev と、developは成功致しました。 しかし、 cd pylearn2/pylearn2/scripts/tutorials/grbm_smd/ python make_dataset.py の実行を行ったところ、 Traceback (most recent call last): File "make_dataset.py", line 27, in <module> train = cifar10.CIFAR10(which_set="train") File "/Users/aaa/pylearn2/pylearn2/datasets/cifar10.py", line 73, in __init__ data = CIFAR10._unpickle(fname) File "/Users/aaa/pylearn2/pylearn2/datasets/cifar10.py", line 244, in _unpickle fname = os.path.join(string_utils.preprocess('${PYLEARN2_DATA_PATH}'), File "/Users/aaa/pylearn2/pylearn2/utils/string_utils.py", line 55, in preprocess reraise_as(NoDataPathError()) File "/Users/aaa/pylearn2/pylearn2/utils/exc.py", line 90, in reraise_as six.reraise(type(new_exc), new_exc, orig_exc_traceback) File "/Users/aaa/pylearn2/pylearn2/utils/string_utils.py", line 52, in preprocess else os.environ[varname]) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__ raise KeyError(key) pylearn2.utils.exc.NoDataPathError: You need to define your PYLEARN2_DATA_PATH environment variable. If you are using a computer at LISA, this should be set to /data/lisa/data. Platform-specific instructions for setting environment variables: Linux ===== On most linux setups, you can define your environment variable by adding this line to your ~/.bashrc file: export PYLEARN2_VIEWER_COMMAND="eog --new-instance" *** YOU MUST INCLUDE THE WORD "export". DO NOT JUST ASSIGN TO THE ENVIRONMENT VARIABLE *** If you do not include the word "export", the environment variable will be set in your bash shell, but will not be visible to processes that you launch from it, like the python interpreter. 対応策をお願い致します。 足りない部分は補足します。

  • pythonにおけるメッセージについて

    pythonでクラスを書き、オブジェクトを作りそこにメッセージを送ることでオブジェクトの属性を変化させる、というのがオブジェクト指向であると学んでいました。 ここで >>> import zlib >>> s = 'witch which has which witches wrist watch' >>> t = zlib.compress(s) というのは圧縮する機械にメッセージを送ったら圧縮されたメッセージが出てくるイメージになります。 ここで 文字列を継承して圧縮関数?を加えた実装を考えます >>> s = 'witch which has which witches wrist watch' >>> t = s.compress("zip") これはそもそも可能でしょうか?できるとしてなぜ前者の実装となるのでしょうか? オブジェクト指向、というとオブジェクトにメッセージを送るとそのメッセージによってオブジェクトの変数が操作されると考えてきました。 そうなると後者のほうが正しように感じられます

  • pythonのエラーについて教えて下さい。

    pythonの勉強をおこなっている超初心者です。 ネットでみた。以下のサンプルコードを実行しようとしました。 # -*- coding: utf-8 -*- print u'モジュールのロード' def test(): print u'関数:testを呼び出しました' if __name__ == '__main__': print 'python-izm' # print 'パイソンイズム' test() しかし、以下の様なエラーとなってしまいます。 File ”test02.py"、line 9 print ’python-izm'  ^ indentionError:expected an indented block ネット調べてみたとことpythonのインデントのエラーだとわかりました。 pythonはインデントで実行範囲を認識するので、 そこがうまく記述できていないであろうとは思うのですが、何回か試したのですが うまく動いてくれません。 どなたか御指南下さい。

  • pythonのエラーについて教えてください。

    pythonの勉強しています。練習として以下の様なコードを書きました。 #!/usr/bin/python # coding=utf-8 f = open('aw1.txt' 'r') for row in f: line_data = row.split(' ') print(line_data(1)) f.close() aw1.txtというファイルは自分でviで作成しました。 このpythonスクリプトを実行すると IOError: [Errno 2] No such file or directory: 'aw1.txtr' というエラーになってしまいます。 でも f = open('aw1.txt' 'r') と書いて なぜ 'aw1.txtr'というファイルがないというエラーとなるのかがわかりません。 どこが間違っているのでしょうか? どなたか教えていただけないでしょうか?

  • pythonでのエラー

    Pythonで以下のコードを実行すると12行目に対して 「ValueError: cannot reshape array of size 12288 into shape (4096,1)」 と出るのですがどなたか原因わかるでしょうか? import cv2 import numpy as np img_in = cv2.imread("Parrots.bmp") cv2.imshow("input", img_in) # img_out = cv2.GaussianBlur(img_in, (3,3), 0) # cv2.imshow("Gaussian", img_out) height, width = 64, 64 img_out = cv2.resize(img_in, (height, width)) x = np.reshape(img_out, (width*height,1)) # 画像のベクトル化 H = np.zeros((width*height, width*height), np.float32) for i in range(width*height):     if i-width-1 >= 0 and i+width+1 <width*height:         H[i,i-width-1] = 1/16         H[i,i-width] = 2/16         H[i,i-width+1] = 1/16         H[i,i-1] = 2/16         H[i,i] = 4/16         H[i,i+1] = 2/16         H[i,i+width-1] = 1/16         H[i,i+width] = 2/16         H[i,i+width+1] = 1/16 y = np.matmul(H, x)       y = cv2.GaussianBlur(y, (3,3), 0) cv2.imshow("Gaussian", y) noise = np.random.normal(0, 1, y.shape) y = np.clip(y + noise, 0, 255).astype(np.uint8) gamma = 1e-3 x_estimate = np.linalg.solve(np.matmul(H.T, H) + gamma*np.identity(height*width), np.matmul(H.T, y)) cv2.imshow("x_estimate",x_estimate)

  • python urlopen error について教えてください

    pythonを、勉強したてです。 開発環境は、python2.6/win XP です。 HTMLを解析するために、 http://www.crummy.com/software/BeautifulSoup/ からライブラリーを入手して、C:\Python26\Lib\site-packages\BeautifulSoup-3.1.0.1 に配置しました。 python環境設定のパスは、通してあります。 プログラムは、http://www.freia.jp/taka/blog/169 の「myparser.py」をそのまま使いました。(動作テストのため) ------- 結果 -------- メッセージ ファイル名 行 位置 Traceback <module> C:\Python26\src\myparser.py 50 main C:\Python26\src\myparser.py 41 urlopen C:\Python26\Lib\urllib2.py 124 open C:\Python26\Lib\urllib2.py 383 _open C:\Python26\Lib\urllib2.py 401 _call_chain C:\Python26\Lib\urllib2.py 361 http_open C:\Python26\Lib\urllib2.py 1130 do_open C:\Python26\Lib\urllib2.py 1105 URLError: <urlopen error [Errno 11001] getaddrinfo failed> ネットワーク環境は、プロキシ・サーバを返していますが、どうやっても上記のエラーで引っ掛かってしまいます。

  • Pythonプログラムのエラー

    こんにちは。pythonプログラムを勉強しはじめたばかりのものです。 次のプログラムが最後の行の#のところでエラーになってなかなか 解決ができません。アドバイスいただけませんでしょうか。 #! /python30/python # coding:shift_jis import sys, os, urllib, gzip def GetAndGzip(url, out): ''' urlを読み込み、gzipで圧縮してファイルoutに出力 ''' remote = urllib.urlopen(url).read() gzfile = gzip.GzipFile(filename='', mode='web', fileobj=out) gzfile.write(remote) gzfile.colse() #パラメータを抽出 if len(sys.argv) <> 2: print '使い方:python wgetgz.py url' else: url = sys.argv[1] GetAndGzip(url, sys.stdout) #ここでエラーin<module> #ここで投稿すると、インデントがなくなってしまうようです。

  • pythonのシンタックスエラー

    python3のサンプルコードがあり、エラーが出ます。 内容はファイルを開いてちょっと変更して中身をプリントするというものです。 これは私が書いたのではなく、本の付録のサンプルなのですが、文法エラーとなります。何が原因かご指摘を頂ければと思いますが。文字コードの問題かなと思いましたが、UTF_8となっています。ファイルをdata.pyとして保存して、コマンドでpython data.pyを叩いたときに出てきます。(すみません、ここに張り付けた段階でインデントが見えなくなっているようですが、それは実際は問題ないです) file = "data.dat" limit = 2.0 with open(file, "r", encoding="utf_8") as fileobj: for i, line in enumerate(fileobj): if line == "\n": continue datalist = line.split(",") result = [int(float(num)<=limit) for num in datalist] print(f"{i}:{result}") #エラーメッセージ # File "data.py", line 9 # print(f"{i}:{result}") ^ #SyntaxError: invalid syntax これに関連する質問ですが、pythonはコンパイルしないようになっているみたいなので、コンパイル時のエラーと実行時のエラーの区別がつきません。このエラーは実際に動作してエラーが出ているということなのでしょうか。他の言語ではシンタックスエラーはコンパイルエラーなので実行前のエラーとは思いますが、文法チェックと実行の関係を教えて頂ければと思いますが。 よろしくお願いします。

専門家に質問してみよう