>>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.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と書いてあるのですが、その辺は大丈夫ですか?
そんなにしょぼいはずは無いですね。ごめんなさい。
この回答への補足
>>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
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
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・人生のプチ美学を教えてください!!
- ・10秒目をつむったら…
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・【大喜利】【投稿~9/18】 おとぎ話『桃太郎』の知られざるエピソード
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
gccのインクルードパスの確認
-
perlのダウングレード方法
-
FedoraCore4にfirefoxをインス...
-
make でエラー
-
makeコマンドができない
-
Mac OS X, X11 で、pkg-config ...
-
HP-UXでImageMagick起動時にエラー
-
Mac上でPythonのtkinterを使っ...
-
MYSQLのmakeができない!(Redha...
-
glibcバージョンアップ
-
ubuntu 初期化について
-
パソコンでゲームをプレイしよ...
-
外部レポジトリとは
-
「クラスが登録されていません 」
-
PUTTYでログインしたコンソール...
-
Linux Mint 20に重複ファイルを...
-
Linux mintを消してWindows10を...
-
virtual boxにインストールした...
-
CPANでインストールしたモジュ...
-
Apacheとtomcatの削除
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
gccのインクルードパスの確認
-
makeコマンドができない
-
Solaris10でCコンパイラが見...
-
*** ターゲット `all' を make ...
-
Debianでのmakeコマンドインス...
-
Linuxのgccのインクルードパス?
-
make でエラー
-
perlのダウングレード方法
-
ソースからmakeした場合の削除方法
-
ダウンロードファイルなどは、...
-
C言語ファイルのコンパイルがで...
-
macos での /usr/local/lib と...
-
linuxの/usr/includeについて
-
glibcバージョンアップ
-
./configureの次にmakeが出来ま...
-
opensslのrpmインストールとsou...
-
LinuxにPHPをソースからインス...
-
ツールのインストールができません
-
solarisのmakeについて
-
phpで再度configureする方法
おすすめ情報