« list slicing in python: get till the last item | トップページ | Jリーグの勝ち点をpylabでプロットしてみたら無駄に美しかった件。 »

2011年8月19日 (金)

CythonでGCCがNumPyのCヘッダーを見つけられない場合

カジュアルCythonユーザーな私にはpyximportが欠かせません。CythonをXP上でGCCで使うには、ちょいと設定が必要なのはこの間書いた通りです。

次は、本格的に使い始めると避けて通れないだろうNumpyを含むコードをCythonizeしてみたいときに、GCCからNumPyのC header filesが見えなくてエラーになるときの対処法です。

GCCのインストール先にあるインクルードフォルダー C:\MinGW\include などへ、サイトパッケージの中にあるheader filesをコピーします。
C:\Python26\Lib\site-packages\numpy\core\include などにみつかるでしょう。

これでめでたくGCCが怒るのをやめました。

ほんとうは -I とかのオプションをGCCに渡してやればいいんでしょうが、pyximportのほうの設定がさっぱりわからないので、とりあえずの対処法ということで、numpyをアップデートしたりしたらわすれずにコピーしなおすとかしないとあとあと問題がおきるかもしれません。

追記)Windows 7ではこれではうまくNumpyのヘッダーが認識されなかったので、ここを参考に、CPATHという環境変数を追加してC:\Python26\Lib\site-packages\numpy\core\includeをいれてみたらうまく行った。再追記)なんだかそれでも、VCを探しに行く時があるようなので、おまじないのpyximport.install()を

    mingw_setup_args = { 'options': { 'build_ext': { 'compiler': 'mingw32' } } }
    pyximport.install(setup_args=mingw_setup_args)

に変更する必要もあるみたいだ。

« list slicing in python: get till the last item | トップページ | Jリーグの勝ち点をpylabでプロットしてみたら無駄に美しかった件。 »

Python」カテゴリの記事

コメント

https://www.nikeoutlet-store.us.org/
https://www.nike-clearance.us.org/
https://www.yeezyadidas.com.co/
https://www.cheapjordansshoessale.us/
https://www.shoeswholesalesuppliers.us/
https://www.nikesoutlet.us.org/
https://www.nikeairforce1.us.org/
https://www.jordans28.us/
https://www.foamposites.us.org/
https://www.jordanshoess.us.org/
https://www.nikeepicreactuptempo.us.org/
https://www.jordan15.us/
https://www.cheapshoeswholesalefreeshipping.us/
https://www.nikesneakerss.us.com/
https://www.newjordans.us.org/
https://www.nikeoutletstoreonlines.us.org/
https://www.nikeshoescheap.us.org/
https://www.nikeairmaxs-270.us.com/
https://www.nikeairmaxs.us.org/
https://www.fjallravenkankenbackpack.us.org/
https://www.pandorajewelryofficialsites.us/
https://www.canadashoesoutlet.ca/
https://www.nikeairjordan.us.org/
https://www.nmdr1.us.com/
https://www.nikewholesalesuppliers.us.com/
https://www.ringspandora.us/
https://www.nhlshops.ca/
https://www.nikeshoeswholesale.us.com/
https://www.diorjordans.us/
https://www.nikeshoesdeals.us.com/
https://www.pandora-jewelry-charms.us/
https://www.shoesshop.ca/
https://www.wholesaleadidas.us.com/
https://www.nikerosheblazer.us.org/
https://www.nikeshops.us.com/
https://www.jordans33.us/
https://www.officialpandorajewelry.us/
https://www.nikerunningshoesforwomen.us.com/
https://www.nikefree.us.org/
https://www.nikeshoessale.us.org/
https://www.jordan30.us/
https://www.jordan4.us.org/
https://www.wholesalenikeshoesonline.us.com/
https://www.pandoraa.us/
https://www.airjordan-retros.us/
https://www.jordan2s.us/
https://www.jordans12.us/
https://www.jordan18.us/
https://www.nikess.us.com/
https://www.jordan20.us/
https://www.jordan11lowretro.us/
https://www.wholesalejordans.us.org/
https://www.jordan19.us/
https://www.nikeblackfridaycybermonday.us.org/
https://www.yeezysboost350v2.us.org/
https://www.nikeshoesformens.us.com/
https://www.jordan16.us/
https://www.airjordans13.us/
https://www.wholesaleshoessneakers.us/
https://www.cheapadidasshoes.us.org/
https://www.airjordan33.us/
https://www.jordan6s.us/
https://www.jordans13shoes.us/
https://www.cheapjerseyswholesale.ca/
https://www.nbastorecanada.ca/
https://www.christianslouboutin.us.org/
https://www.wholesaleshoescheap.us/
https://www.nikeairmax270s.us.com/
https://www.nikeoffwhite.us.org/
https://www.jordan17.us/
https://www.wholesaleshoesclothing.us/
https://www.jordan-12.us.org/
https://www.air-max2019.us.org/
https://www.adidasyeezywebsite.us.org/
https://www.jordan26.us/
https://www.airjordans11retro.us/
https://www.nikeoutletshoes.us.org/
https://www.airjordanretro.us.org/
https://www.cheapjordansshoeswholesale.us.org/
https://www.jordans14.us/
https://www.airmaxs.us.org/
https://www.pandora-jewelrysite.us/
https://www.wholesalejerseyscheap.us.org/
https://www.nflshoponline.ca/
https://www.nikeslidessandalsslipers.us.com/
https://www.jordan5whatthe.us/
https://www.wholesalenikeshoesclothing.us.com/
https://www.lebronsjamesshoes.us.com/
https://www.newnikesneakers.us.org/
https://www.michaeljordan-shoes.us/
https://www.wholesalejordansfactory.us/
https://www.nikesnew.us.com/
https://www.cheapshoeswholesalefromchina.us/
https://www.redbottomslouboutinshoes.us.org/
https://www.pandorajewelrycz.us/
https://www.jordan1.us.org/
https://www.nikewholesale.us.org/
https://www.jordan35.us/
https://www.nikeairforces.us.com/
https://www.nikeairhuaraches.us.com/
https://www.airforce1s.us.org/
https://www.huaraches.us.org/
https://www.christianlouboutinshoess.us.com/
https://www.cheapjordanshoessuppliers.us.org/
https://www.nikerosheblazers.us.com/
https://www.newnikesshoes.us.org/
https://www.nhljerseysstore.ca/
https://www.jordan11s.us.org/
https://www.huaracheshoes.us.com/
https://www.nikesoutletstore.us.com/
https://www.nikefoampositeacghyperdunk.us.com/
https://www.retro12.us/
https://www.nikeairzoom.us.com/
https://www.nikeair-force1.us.org/
https://www.jordanswholesale.us.org/
https://www.nikeshoesstores.us.com/
https://www.nike-runningshoes.us.org/
https://www.jordans32.us/
https://www.jordan22.us/
https://www.jordan27.us/
https://www.jordan21.us/
https://www.nikesbdunk.us.com/
https://www.nikeairforce1s.us.org/
https://www.jordan29.us/
https://www.officialpandorarings.us/
https://www.pandorajewelrycharmscanada.ca/
https://www.nikerunningshoes.us.org/
https://www.toddlerbabyinfantjordans.us/
https://www.jordan25.us/
https://www.airmax720.us.org/
https://www.cheapjordanswholesalefreeshipping.us/
https://www.jordan-aj1.us/
https://www.kidsjordans.us/
https://www.nikeairforceones.us.org/
https://www.nikecortezshox.us.org/
https://www.jordan24.us/
https://www.jordans23.us/
https://www.pandorasbracelets.us/
https://www.jerseysstore.ca/
https://www.nikezoomshoes.us.com/
https://www.mlbjerseysshop.ca/
https://www.jordans34.us/
https://www.nikecanadashoesshop.ca/
https://www.jordan11concordshoes.us/
https://www.nike-outlets.us.com/
https://www.nikewomensshoes.us.com/
https://www.jordan31.us/
https://www.shoesstores.ca/
https://www.nikestoresfactory.us.com/
https://www.jordan33.us.org/
https://www.adidasoutletstore.us.org/
https://www.nikeshoesoutletstoreonlineshopping.us.com/
https://www.adidasstoreoutlet.us.com/
https://www.nikejordan1.us.com/
https://www.nikemetcons.us.com/

https://www.air-jordan6.us/
https://www.redbottomshoeslouboutin.us.com/
https://www.ggdbsneakers.us.com/
https://www.jordans-sneakers.us.com/
https://www.pandora-braceletcharms.us/
https://www.jordan11red.us.com/
https://www.jordansneakerss.us/
https://www.nikeairmax98.us/
https://www.louboutinsshoes.us.com/
https://www.newjordansshoes.us.com/
https://www.nikeshoesforwomens.us.com/
https://www.mensnikeshoes.us.com/
https://www.monclerjacketsstore.us.com/
https://www.pandorajewelryofficialsite.us.com/
https://www.nikesoutletstoreonlineshopping.us.com/
https://www.shoes-jordan.us.com/
https://www.jordan11ssneakers.us/
https://www.jordanretro-11.us.com/
https://www.red-bottomsshoes.us.com/
https://www.jordans-4.us/
https://www.huarachesnike.us.com/
https://www.nikesnkrs.us.com/
https://www.pandorasjewelry.us.com/
https://www.yeezys-shoes.us.com/
https://www.retrosjordans.us/
https://www.airjordan3s.us/
https://www.fitflop-shoes.us.org/
https://www.jordan11winlike96.us/
https://www.goldensgoose.us.com/
https://www.jacketsmoncleroutlet.us.com/
https://www.ggdbs.us.com/
http://www.pandorarings.us.com/
https://www.yeezy.us.org/
https://www.pandoraringssite.us/
https://www.nikeairjordan.us.com/
https://www.goldengoosesales.us.com/
https://www.outletgoldengoose.us.com/
https://www.jordans11.us.com/
https://www.goldengoosessneakers.us.com/
https://www.jordan11sshoes.us/
https://www.shoeslouboutin.us.com/
https://www.nikeofficialwebsite.us.com/
https://www.airforceoneshoes.us.com/
https://www.airjordan6rings.us/
https://www.jordans5.us/
https://www.airjordanretro11.us.com/
https://www.new-jordans.us.com/
https://www.pandorajewellery.us.com/
https://www.pandorascharms.us.com/
https://www.nikeoutletstoresonlineshopping.us.com/
https://www.monclerstoreoutlet.us.com/
https://www.nikesfactory.us.com/
https://www.jordanshoess.us.com/
https://www.ferragamo-outlets.us/
https://www.jordans4retro.us/
https://www.jordanscheapshoes.us/
https://www.nikeshoes-cheap.us.com/
https://www.canadapandoracharms.ca/
https://www.jordansretro12.us/
https://www.airjordan11s.us.com/
https://www.nike--shoes.us.com/
https://www.nike-airmax2018.us.com/
https://www.redbottomslouboutin.us.org/
https://www.nikeoutletshoes.us.com/
http://www.yeezys.com.co/
https://www.jordan10.us.com/
https://www.jordanshoesretro.us.com/
https://www.jordan-retro5.us/
https://www.yeezyonline.us.com/
https://www.airmax270.us.org/
https://www.retro-jordans.us/
https://www.monclerstores.us.com/
https://www.air-max90.us.com/
https://www.jordanretros.us.com/
https://www.airjordan5.us/
https://www.jameshardenshoes.com.co/
https://www.fjallraven-kanken.us.com/
https://www.adidasnmdr1.us.org/
https://www.newnikeshoes.us.com/
https://www.air-jordan12.us/
https://www.goldengoosemidstar.us.com/
https://www.jordan1.us.com/
https://www.jordan13s.us/
https://www.pandorajewelryofficial-site.us/
https://www.jordans-11.us/
https://www.pandoracanadajewelry.ca/
https://www.ferragamos.us.org/
https://www.balenciagatriples.us.org/
https://www.jordan14.us.com/
https://www.goldengooseoutletfactory.us.com/
https://www.monclerjacket.us.org/
https://www.eccos.us.com/
https://www.monclervest.us.com/
https://www.airjordan4s.us/
https://www.sneakersgoldengoose.us.com/
https://www.balenciagas.us.org/
https://www.monclercom.us.com/
https://www.retrosairjordan.us/
https://www.air-jordanssneakers.us/
https://www.jordan-8.us/
https://www.jamesharden-shoes.us.org/
https://www.moncler-outletjackets.us.com/
https://www.newjordan11.us/
https://www.valentinosshoes.us.org/
https://www.airmax-95.us.com/
https://www.nikeshoesoutletfactory.us.com/
https://www.nikeair-maxs.us.com/
https://www.airjordansneakers.us.com/
https://www.kyrieirving-shoes.us.org/
https://www.jordan-retro6.us/
https://www.pandorasjewelry.ca/
https://www.soccercleats.us.com/
https://www.air-jordans11.us.com/
https://www.fitflopsclearance.us.com/
https://www.jordan11low.us.com/
https://www.yeezys-shoes.us.org/
https://www.jordanretro11mens.us/
https://www.air-jordansneakers.us/
https://www.jordansretro3.us/
https://www.birkin-bag.us.com/
https://www.jordan-shoesformen.us.com/
https://www.ggdbshoes.us.com/
https://www.pandoraonline.us/
https://www.adidasyeezysshoes.us.com/
https://www.outletnikestore.us.com/
https://www.jordan12retros.us/
https://www.goldengooseshoess.us.com/
https://www.jordan-4.us.com/
https://www.pandoras.us.com/
https://www.jordan-12.us.com/
https://www.moncleroutletstoreonline.us.com/
https://www.nmds.us.com/
https://www.nikeairforce1.us.org/
https://www.goldengoosesneakerss.us.com/
https://www.nikesales.us.com/
https://www.jordan9.us.com/

コメントを書く

(ウェブ上には掲載しません)

トラックバック


この記事へのトラックバック一覧です: CythonでGCCがNumPyのCヘッダーを見つけられない場合:

« list slicing in python: get till the last item | トップページ | Jリーグの勝ち点をpylabでプロットしてみたら無駄に美しかった件。 »

しろののツイッタータイムライン(凍結中)

  • ツイッターは5つ目も凍結されました。6つ目での復活も不可能。なのでnoteに注力しています。

    と思ったら、イーロン・マスクの買収が公になってアカウントが復活できました。ありがとうマスク。

    トランプ関連記事の一覧リスト

オススメたち

2022年8月
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

はてブ

無料ブログはココログ