Pylearn2インストール失敗

このQ&Aのポイント
  • Pylearn2をインストールしようとすると、gccのバージョンに関するエラーが発生します。
  • 最新のgccは4.9であり、バージョンの違いが原因でエラーが発生している可能性があります。
  • 問題を解決するためには、gccのバージョンを更新するか、他のインストール方法を試す必要があります。
回答を見る
  • ベストアンサー

pylearn2 インストール失敗

>>python setup.py install を実行した所、 running install Because Pylearn2 is under heavy development, we generally do not advice using the `setup.py install` command. Please consider using the `setup.py develop` command instead for the following reasons: 1. Using `setup.py install` creates a copy of the Pylearn2 source code in your Python installation path. In order to update Pylearn2 afterwards you will need to rerun `setup.py install` (!). Simply using `git pull` to update your local copy of Pylearn2 code will not suffice. 2. When using `sudo` to install Pylearn2, all files, including the tutorials, will be copied to a directory owned by root. Not only is running tutorials as root unsafe, it also means that all Pylearn2-related environment variables which were defined for the user will be unavailable. Pressing enter will continue the installation of Pylearn2 in `develop` mode instead. Note that this means that you need to keep this folder with the Pylearn2 code in its current location. If you know what you are doing, and are very sure that you want to install Pylearn2 using the `install` command instead, please type `install`. Installation mode: [develop]/install/cancel: と、出力されinstallを実行した所、 running build running build_py running build_ext building 'pylearn2.utils._window_flip' extension C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c' gcc-4.2: pylearn2/utils/_window_flip.c i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccGQGOMD.out i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccGQGOMD.out error: Command "gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pylearn2/utils/_window_flip.c -o build/temp.macosx-10.6-intel-2.7/pylearn2/utils/_window_flip.o" failed with exit status 1 とgcc4.2の部分でエラーが発生しました。 最新のgccは4.9であるため、バージョンによる失敗なんでしょうか? ちなみにdevelopを実行しても同様です。 対応策をよろしくお願い致します。

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

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

その他の回答 (2)

回答No.2

ここでエラーが出ている原因は次です。 > 686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory > i686-apple-darwin10-gcc-4.2.1: no input files ・pylearn2/utils/_window_flip.c が無い → pylearn2 のファイルが何らかの理由で不足しています。 ・最新のgccは4.9であるため、バージョンによる失敗なんでしょうか? 上記ファイルがないため no input files でエラーになっています。 "現時点"ではgccのバージョンは関係有りません。注:将来関係してくる可能性を否定する物では有りません。 対策: ・pylearn2のファイル群を適切に取得してくる必要が有ります。 質問者様がどのようなコマンドを実行してきたのか不明なので見当違いかと思いますが: 質問の文の中に using `git pull` to update your local copy of Pylearn2 code will not suffice. すなわち、一度’Using `setup.py install`’を使ってしまったら 'git pull'はnot suffuceと書いてあるのですが、その辺は大丈夫ですか? そんなにしょぼいはずは無いですね。ごめんなさい。

sato_tokutoku
質問者

補足

>>git clone git://github.com/lisa-lab/pylearn2.git Cloning into 'pylearn2'... remote: Counting objects: 37909, done. remote: Total 37909 (delta 0), reused 1 (delta 0) Receiving objects: 100% (37909/37909), 11.17 MiB | 153.00 KiB/s, done. Resolving deltas: 100% (27554/27554), done. Checking connectivity... done. >> python setup.py develop running develop running egg_info creating pylearn2.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 writing manifest file 'pylearn2.egg-info/SOURCES.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 building 'pylearn2.utils._window_flip' extension C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes creating build creating build/temp.macosx-10.6-intel-2.7 creating build/temp.macosx-10.6-intel-2.7/pylearn2 creating build/temp.macosx-10.6-intel-2.7/pylearn2/utils compile options: '-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c' gcc-4.2: pylearn2/utils/_window_flip.c i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccaXhBF6.out i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccaXhBF6.out error: Command "gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pylearn2/utils/_window_flip.c -o build/temp.macosx-10.6-intel-2.7/pylearn2/utils/_window_flip.o" failed with exit status 1

  • goold-man
  • ベストアンサー率37% (8365/22183)
回答No.1

Verは? Python2系は2.7が最新ですが、・・・・のインストーラパッケージがPython2.6用しか用意されていないので、Python2.6をお勧めします、とあります。 参考URL Pythonは2.7を使ってください、とあります。 http://deeplearning.jp/?p=196

参考URL:
http://www.openacoustics.org/?page_id=299
sato_tokutoku
質問者

補足

python version 2.7.8 gcc version 4.2.1 python2.7で実行されております。

関連する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コンパイラに問題があるということなのでしょうか? どなたかアドバイスをお願いします。

  • mecab-pythonのインストールに失敗しまし

    先ほどmecabのインストールに成功して、今度はmecab-pythonをインストールしようとしたら、失敗したようです。 参考にしたサイトは以下です http://tatsuyaoiw.hatenablog.com/entry/20120414/1334405065 ●mecabのインストール直後 root@debian:/usr/local# mecab 参考までに、私がインストールした手順を下に書きます。 参考 名詞,サ変接続,*,*,*,*,参考,サンコウ,サンコー まで 助詞,副助詞,*,*,*,*,まで,マデ,マデ に 助詞,格助詞,一般,*,*,*,に,ニ,ニ 、 記号,読点,*,*,*,*,、,、,、 私 名詞,代名詞,一般,*,*,*,私,ワタシ,ワタシ が 助詞,格助詞,一般,*,*,*,が,ガ,ガ インストール 名詞,一般,*,*,*,*,インストール,インストール,インストール し 動詞,自立,*,*,サ変・スル,連用形,する,シ,シ た 助動詞,*,*,*,特殊・タ,基本形,た,タ,タ 手順 名詞,一般,*,*,*,*,手順,テジュン,テジュン を 助詞,格助詞,一般,*,*,*,を,ヲ,ヲ 下 名詞,一般,*,*,*,*,下,シタ,シタ に 助詞,格助詞,一般,*,*,*,に,ニ,ニ 書き 動詞,自立,*,*,五段・カ行イ音便,連用形,書く,カキ,カキ ます 助動詞,*,*,*,特殊・マス,基本形,ます,マス,マス 。 記号,句点,*,*,*,*,。,。,。 EOS ^Z ●ここからmecab-pythonインストール開始 root@debian:/usr/local# wget *ttp://mecab.googlecode.com/files/mecab-python-0.993.tar.gz --2015-01-08 06:05:07-- *ttp://mecab.googlecode.com/files/mecab-python-0.993.tar.gz mecab.googlecode.com (mecab.googlecode.com) をDNSに問いあわせています... 173.194.72.82 mecab.googlecode.com (mecab.googlecode.com)|173.194.72.82|:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 63267 (62K) [application/x-gzip] `mecab-python-0.993.tar.gz' に保存中 100%[======================================>] 63,267 147K/s 時間 0.4s 2015-01-08 06:05:09 (147 KB/s) - `mecab-python-0.993.tar.gz' へ保存完了 [63267/63267] root@debian:/usr/local# tar zxvf mecab-python-0.993.tar.gz mecab-python-0.993/ mecab-python-0.993/MeCab.pyc mecab-python-0.993/LGPL mecab-python-0.993/BSD mecab-python-0.993/COPYING mecab-python-0.993/setup.py mecab-python-0.993/test.py mecab-python-0.993/MeCab.py mecab-python-0.993/GPL mecab-python-0.993/bindings.html mecab-python-0.993/README mecab-python-0.993/MeCab_wrap.cxx mecab-python-0.993/AUTHORS root@debian:/usr/local# cd mecab-python-0.993 root@debian:/usr/local/mecab-python-0.993# python setup.py build running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying MeCab.py -> build/lib.linux-x86_64-2.7 running build_ext building '_MeCab' extension creating build/temp.linux-x86_64-2.7 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.7 -c MeCab_wrap.cxx -o build/temp.linux-x86_64-2.7/MeCab_wrap.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/MeCab_wrap.o -L/usr/local/lib -lmecab -lstdc++ -o build/lib.linux-x86_64-2.7/_MeCab.so root@debian:/usr/local/mecab-python-0.993# sudo python setup.py install running install running build running build_py running build_ext running install_lib copying build/lib.linux-x86_64-2.7/_MeCab.so -> /usr/local/lib/python2.7/dist-packages copying build/lib.linux-x86_64-2.7/MeCab.py -> /usr/local/lib/python2.7/dist-packages byte-compiling /usr/local/lib/python2.7/dist-packages/MeCab.py to MeCab.pyc running install_egg_info Writing /usr/local/lib/python2.7/dist-packages/mecab_python-0.996.egg-info ●ここからmecab-python試験 root@debian:/usr/local/mecab-python-0.993# python Python 2.7.3 (default, Jan 2 2013, 13:56:14) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import MeCab Traceback (most recent call last): File "<stdin>", line 1, in <module> File "MeCab.py", line 25, in <module> _MeCab = swig_import_helper() File "MeCab.py", line 17, in swig_import_helper import _MeCab ImportError: libmecab.so.2: cannot open shared object file: No such file or directory >>> import sys >>> import MeCab Traceback (most recent call last): File "<stdin>", line 1, in <module> File "MeCab.py", line 25, in <module> _MeCab = swig_import_helper() File "MeCab.py", line 17, in swig_import_helper import _MeCab ImportError: libmecab.so.2: cannot open shared object file: No such file or directory このOSにはipythonというものがあり、いわゆるインテリセンスがコンソールから使えるのですが、"MeCab"を補完しません。 どうすれば良いのでしょうか Linux未熟者は手を出さないほうが良かったかも

  • Twistedをインストールしたい

    お世話になります。 Xen を使ってみたいと思い Linux に Twisted を インストールするところでエラーが出てしまい、つまずいております。 Twisted のバージョンを変えてトライしてもインストールできません。 環境は以下の通りです。 ---------------------------------------- Vine Linux 3.2 Python 2.3.4 ---------------------------------------- Twisted-2.4.0 の中に入っている TwistedCore-2.4.0 を インストールしようとして出たエラーは以下の通りです。 (下記のものは2回目以降の install 実行画面です) ---------------------------------------- # python setup.py install running install running build running build_py running build_ext Checking if C extensions can be compiled, don't be alarmed if a few compile errors are printed. gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -fPI C -I/usr/include/python2.3 -c conftest.c -o conftest.o running build_scripts running install_lib byte-compiling /usr/lib/python2.3/site-packages/twisted/test/stdio_test_halfclose.py to stdio_test_h alfclose.pyc File "/usr/lib/python2.3/site-packages/twisted/test/stdio_test_halfclose.py", line 20 ??? ^ SyntaxError: invalid syntax running install_scripts changing mode of /usr/bin/manhole to 755 changing mode of /usr/bin/mktap to 755 changing mode of /usr/bin/twistd to 755 changing mode of /usr/bin/tap2deb to 755 changing mode of /usr/bin/tap2rpm to 755 changing mode of /usr/bin/tapconvert to 755 changing mode of /usr/bin/tkmktap to 755 changing mode of /usr/bin/trial to 755 running install_data ---------------------------------------- 身勝手で大変申し訳ありませんが、 勉強のために Vine Linux で Xen をインストールすることを目指しておりますので ディストリビューションを変更するという回答以外でお願いいたします。 それではよろしくお願いいたします。

  • [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. 対応策をお願い致します。 足りない部分は補足します。

  • macを使っています。バージョンは、10.6.4です。

    macを使っています。バージョンは、10.6.4です。 前まで、コンパイルをするのに、gccを使って簡単にできていたのですが、最近になってスノーレパードにアップデートしたところ、gccが使えなくなってしまいました。 gcc -vを打ってみると、 Using built-in specs. Target: i686-apple-darwin10 Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5664) と出るのですが、全く分かりません。 どうすれば、できるか分かる人いたらよろしくお願いします。

    • ベストアンサー
    • Mac
  • PyQuanteのインストールの際にエラーについて

    pythonをインストールしコマンドプロンプト上で >python setup.py build -c mingw32 install を入力した際に error: command 'gcc' failed: No such file or directory といったエラーが出ます。 調べていろいろ試してみましたが対処法がわかりません。環境設定もできていて、必要なものは全てインストール済みです。OSはWindous Vista 32bitです。

  • pylearn2インストールに関する

    Pylearn2のインストールが実行できません。 git clone git://github.com/lisa-lab/pylearn2.git の実行を行い、続いて python setup.py developを実行したのですが、 結果は、/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory です。 それと、 git/pylearn2ディレクトリにて 上記のコマンドを実行した場合、 Traceback (most recent call last): File "setup.py", line 6, in <module> import numpy ImportError: No module named numpy と出力されます。 http://kensuke-mi.xyz/kensuke-mi_diary/2014/11/rbma.html のサイトの手順通りに実行を行いました。 対処方法を教えて頂けないでしょうか。 よろしくお願い致します。 pythonのversionは2.7.8 mac 10.6.8 64bitです。

  • macでpyuic5というコマンドがエラーする

    現在、raspberrypi3でGUIプログラミングを行いたいと思い、pyqtでそれが実現できるとのことで、とりあえず、下のサイトからmacにpyqtとqtcreatorをインストールして練習してみようと思いました。 https://www.baldengineer.com/raspberry-pi-gui-tutorial.html それで、 /Users/maeharakenji/Qt/Qt\ Creator.app でqtcreatorを起動して、簡易的なデスクトッププログラムのプロジェクトを作成しました。 そして、そのプロジェクトにできたmainwindow.uiというファイルをpyuic5コマンドで、pythonファイルを出力するために、 $ pyuic5 mainwindow.ui > mainwindow_auto.py /usr/local/bin/pyuic5: line 2: exec: python3.6: not found このようなエラーが出てきます。 mainwindow_auto.pyファイルは出力されますが、中身が空の状態です。 python3.6というのがインストールされていないみたいなエラーだと思うのですが、現在の私のmacのpythonの環境は $ python3 Python 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> $ python Python 2.7.10 (default, Jul 30 2016, 19:40:32) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> このような状態のようです。 この問題を解消するにはどうしたら良いか、ご教示頂きますよう宜しくお願い致します。

  • gnuplot.py について

    目的:pythonで数値計算した結果をgnuplotで出力したい。 要点:Gnuplot を import できてもグラフを表示できない。 OS : Mac OS X 10.5 まず、SorceForge から ・numerical python (numpy-1.5.1-py2.7-python.org-macosx10.3) ・gnuplot.py (gnuplot-py-1.8.tar) をダウンロードしました。 次にterminalで上のそれぞれのファイルがあるディレクトリにいって、 >> python setup.py install としました。どうやら成功した模様です。 numpy と Gnuplot というフォルダが /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ というディレクトリにできています。 そして、IDLE の python shell で >>> import numpy >>> import Gnuplot としました。無事完了します。ここまではOKです。 しかし、試しに python shell から gnuplot で表示してみようとすると、IOError: [Errno 32] Broken pipe というエラーを表示します。たとえば、上に書いたディレクトリのGnuplot というフォルダの中に、test.py というスクリプトがあって、IDLE で開いて実行すると、次のような表示が出ます: This program exercises many of the features of Gnuplot.py. The commands that are actually sent to gnuplot are printed for your enjoyment. Popping up a blank gnuplot window on your screen. Press return to show results... Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/demo.py", line 110, in <module> demo() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/demo.py", line 28, in demo g = Gnuplot.Gnuplot(debug=1) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/_Gnuplot.py", line 187, in __init__ self('set terminal %s' % (gp.GnuplotOpts.default_term,)) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/_Gnuplot.py", line 210, in __call__ self.gnuplot(s) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/gp_macosx.py", line 144, in __call__ self.flush() IOError: [Errno 32] Broken pipe 他のスクリプトを実行してみると、次の4つを除き正常に実行されます; _init.py, demo.py, test.py, gp_mac.py ただし、gp_mac.py だけは IOError: [Errno 32] Broken pipe ではなく、 ImportError: No module named Required_Suite というエラーです。 何が原因でしょうか?これを解決するにはどうしたらよいのでしょうか?

  • 勉強でfedora11にtrac(日本語)をインストールしようと思いサ

    勉強でfedora11にtrac(日本語)をインストールしようと思いサイトを参考にインストールを行っているのですがうまくいかずに投稿させていただきました。 実行したコマンド [root@***Trac-0.11.7.ja1]# python ./setup.py install running install error: invalid Python installation: unable to open /usr/lib/python2.6/config/Makefile (No such file or directory)になってインストールできません。 ファイルがないのかと思い確認しましたら、/usr/lib/python2.6配下のconfigファイルがありません・・・ 仕方がないのでアップデートを実行 [root@*** Trac-0.11.7.ja1]# yum update python これでいいですか? [y/N]y (1/2): python-2.6-12.fc11.i586.rpm (2/2): python-libs-2.6-12.fc11.i586.rpm /usr/lib/python2.6配下を確認。configファイルなし・・・・なぜないのでしょうか。。。 参考にしたサイト http://lightmaterial.blogspot.com/2007/04/trac_15.html http://d.hatena.ne.jp/kazf/20070401 http://d.hatena.ne.jp/solitary_shell/20070318/1174227697 OS fedora11 カーネル 2.6.29.4-167.fc11.i586 メモリ 512M プロセッサー Intell(R) Celeron(R) M 1.30GHz 利用可能ディスク容量 21G ご教授お願いします。