【CentOS7】pip install mojimoji が失敗する件 | 瀬戸内の雲のように

【CentOS7】pip install mojimoji が失敗する件

Posted: 2018-04-13


スポンサーリンク

目次

背景

robotframeworkを使った試験を行うときに、どうしても全角文字を使う必要が出てきました。

ググってみると、mojimojiというパッケージを入れればおk的なことが書いてあったので早速入れようとしたところ、失敗してしまいました。

 

エラー内容

コマンドはこんな感じ

pip install -U mojimoji

 
エラー内容はこんな感じ

Collecting mojimoji
  Using cached mojimoji-0.0.7.tar.gz
Installing collected packages: mojimoji
  Running setup.py install for mojimoji ... error
    Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0sNKtQ/mojimoji/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-Ermhvf-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'mojimoji' extension
    creating build
    creating build/temp.linux-x86_64-2.7
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c mojimoji.cpp -o build/temp.linux-x86_64-2.7/mojimoji.o
    mojimoji.cpp:4:20: 致命的エラー: Python.h: そのようなファイルやディレクトリはありません
     #include "Python.h"
                        ^
    コンパイルを停止しました。
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0sNKtQ/mojimoji/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-Ermhvf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-0sNKtQ/mojimoji/

原因

pythonの開発ライブラリが入ってないことが原因でした。
以下で解決します。

yum install python-devel

 
これを行った後はすんなり行きます。

# pip install -U mojimoji
Collecting mojimoji
  Using cached mojimoji-0.0.7.tar.gz
Installing collected packages: mojimoji
  Running setup.py install for mojimoji ... done
Successfully installed mojimoji-0.0.7

以上です。


スポンサーリンク




コメント一覧

2022/05/21 04:10:30

lwvurpdaさん

buy modafinil online cheap buy modafinil 200mg online cheap order modafinil 100mg without prescription


2022/05/21 07:24:18

CharlaOaOaさん

dissertation paper help
custom dissertation writing
cheap dissertation help in chicago


2022/04/08 03:53:15

Fnenvunnyさん

female viagra pill п»їviagra


2022/04/09 02:03:31

AndaAudircurnさん

tadalafil powder bulk is tadalafil a name brand drug


2022/04/09 03:57:18

Keezexictさん

vardenafil vs sildenafil vs tadalafil tadalafil vidalista


2022/04/09 11:55:40

Dbngplugsさん

order sildenafil what is the use of sildenafil citrate tablets


2022/04/09 14:56:40

Ntfbfplugsさん

cialis online no prescription cialis daily


2022/04/10 07:13:26

Crnnwongeさん

over the counter viagra viagra patent viagra cheapest price of viagra


2022/04/12 00:46:33

Fwbnvunnyさん

sildenafil citrate 20mg sildenafil patent


2022/04/12 19:44:33

Kbwnexictさん

buy viagra fast delivery buy female viagra online australia


2022/04/13 16:17:48

Fuupvunnyさん

sildenafil 100mg canada sildenafil tablets 50mg buy


2022/04/14 12:09:27

AnuoAudircurnさん

apply to cvs pharmacy online Biltricide


2022/04/14 23:40:31

Dsnnplugsさん

recommended canadian online pharmacy store pharmacy


2022/04/15 03:02:33

Nbttplugsさん

cialis coupon walgreens buy cialis online cheap


2022/04/14 17:46:20

Knrnexictさん

real viagra online canadian pharmacy canadian pharmacy adderall


2022/04/15 17:59:18

Ckanwongeさん

levitra vs staxyn levitra cost per pill at walmart


2022/04/16 16:51:07

Auupvunnyさん

tadalafil drug test buy liquid tadalafil


2022/04/17 13:44:24

AnnoAudircurnさん

viagra usa pharmacy price of viagra 50 mg in india


2022/04/17 19:26:40

Enrnexictさん

cost of cialis at costco how can i cialis without custom delayed in canada


2022/04/18 03:46:25

Jtnnplugsさん

ivermectin resistance ivermectin lawsuit


2022/04/18 07:18:23

Zbttplugsさん

ivermectin paste for horses ivermectin for scabies in humans


2022/04/18 19:22:56

Wevgwongeさん

roadrunner pharmacy best online canadian pharmacy reviews


2022/04/20 01:40:15

Ahhpvunnyさん

best generic cialis discount super active cialis


2022/04/21 11:06:07

Jnnyplugsさん

how much is cialis buy generic cialis with paypal


2022/04/20 20:45:55

AnuuAudircurnさん

popular prescription drugs recommended canadian online pharmacy


2022/04/21 02:03:33

Ennsexictさん

can you buy over the counter viagra in canada buy sildenafil online australia


2022/04/21 14:37:08

nyyyplugsさん

viagra levitra and cialis side effects levitra dosage timing


2022/04/22 01:21:02

Wnsnwongeさん

levitra dosing instructions levitra pill image


2022/04/22 15:40:05

Danielskymnさん

перевозка емкостей


2022/04/23 06:10:21

Ansnvunnyさん

pharmacy cheap online pharmacy tech program


2022/04/24 01:17:21

JyhAudircurnさん

amazon prescription drugs vipps canadian pharmacy online


2022/04/24 06:35:47

Eaaqexictさん

insulin from canadian pharmacies prescription drugs account for 25% of all healthcare-related costs.


2022/04/24 15:24:30

Jmmplugsさん

mailing prescription drugs across state lines pet pharmacy canada


2022/04/24 18:52:44

Ntcxplugsさん

pharmacy chains in canada discount prescription drugs


2022/04/25 06:20:39

Wnnhwongeさん

bringing prescription drugs into mexico animal rx pharmacy


2022/04/29 17:59:53

Anbnvunnyさん

dapoxetine and sildenafil tablets generic sildenafil 20 mg https://sildenafilkiol.com/


2022/04/30 12:39:56

JyhgAudircurnさん

heartguard ivermectin jama ivermectin https://stromectolujlo.com/


2022/04/30 17:48:36

Ebbexictさん

sands rx pharmacy canadian pharmacy ambien https://dtupharmyjn.com/


2022/05/01 02:21:14

Jebplugsさん

50mg viagra where to buy cheap generic viagra https://sgiviagraikn.com/


2022/05/01 05:41:44

Nndnplugsさん

jamaica rx pharmacy your pharmacy online https://jzpharmacyukj.com/


2022/05/01 16:51:08

Wnbhwongeさん

how to get levitra levitra walmart https://glevitrargu.com/


2022/05/04 14:51:24

JolwAudircurnさん

best generic sildenafil generic viagra gel https://aviagrasbt.com/


2022/05/04 20:04:46

Ebbeexictさん

best cialis dose generic cialis online pharmacy https://dccialisxvf.com/


2022/05/05 03:49:25

Jebnplugsさん

canadian pharmacies reviews canadian pharmacy prescription


2022/05/05 07:02:53

Nndenplugsさん

cost of viagra vs cialis vs levitra can women take levitra https://xclevitradb.com/


2022/05/08 12:00:35

owavfvfkさん

provigil online


2022/05/09 05:01:53

upugrsさん

what are the side effects of taking hydroxychloroquine? hydroxychloroquine for covid 19


2022/05/09 14:19:28

Anbnvunnyさん

sildenafil daily use para que sirve sildenafil https://sildenafilkiol.com/


2022/05/10 08:37:36

JolwAudircurnさん

3 viagra online viagra india https://aviagrasbt.com/


2022/05/10 13:31:38

Ebbeexictさん

cialis 20mg review cialis low prices https://dccialisxvf.com/


2022/05/10 21:10:57

Jebnplugsさん

Nizoral canada viagra


2022/05/11 00:24:54

Nndenplugsさん

women using levitra levitra interactions https://xclevitradb.com/


2022/05/11 11:19:16

Wnbhwongeさん

levitra research 40 mg levitra https://glevitrargu.com/


2022/05/14 16:52:47

Anbnvunnyさん

sildenafil 20 mg cost walgreens sildenafil citrate buy https://sildenafilkiol.com/


2022/05/15 02:59:49

MaggeeOaOaさん

literature review dissertation
dissertation help service nottingham
help on writing a dissertation


2022/05/16 00:38:58

Jebnplugsさん

universal drugstore b12 canada pharmacy


2022/05/16 01:58:45

RegineOaOaさん

dissertation writing support group
help writing my dissertation
dissertation-help writers


2022/05/16 03:53:21

Nndenplugsさん

levitra women levitra directions https://xclevitradb.com/


2022/05/16 14:20:48

gincwiaoさん

provigil usa modafinil drug


2022/05/16 14:52:34

Wnbhwongeさん

buy levitra online 24 hours levitra 20mg nebenwirkungen https://glevitrargu.com/


2022/05/18 00:27:00

himdjiyfさん

modafinil 200mg tablet modafinil 100mg pills


2022/05/18 11:28:47

mvhfugcyさん

oral provigil


2022/05/18 13:02:41

ddenfgmoさん

how to apply erythromycin azithromycin and erythromycin


2022/05/18 20:00:39

Anbnvunnyさん

sildenafil citrate tablets 100mg sildenafil when to take https://sildenafilkiol.com/


2022/05/19 03:07:16

ocbgobimさん

order modafinil 100mg for sale order provigil 200mg for sale


2022/05/19 04:27:13

plckmetpさん

amoxicillin vs erythromycin


2022/05/19 13:51:24

uqrvnutcさん

order provigil 200mg online order generic modafinil 100mg


2022/05/19 14:39:32

KirstiOaOaさん

uga dissertation
doctoral dissertation help proposal
dissertation writing plan


2022/05/19 14:26:32

JolwAudircurnさん

sildenafil uk otc pharmacy price comparison viagra https://aviagrasbt.com/


2022/05/19 19:22:51

Ebbeexictさん

how many mg cialis should i take buy c5 cialis https://dccialisxvf.com/


2022/05/20 03:43:58

Jebnplugsさん

canadianpharmacy cost of prescription drugs in us vs other countries


2022/05/20 07:02:26

Nndenplugsさん

cialis and levitra viagra cheap generic levitra online https://xclevitradb.com/


2022/05/20 10:21:41

oqolzrznさん

modafinil 100mg usa order provigil 100mg sale purchase provigil generic


2022/05/20 18:04:10

Wnbhwongeさん

levitra online generic levitra vardenafil 20mg https://glevitrargu.com/



コメントを投稿する


お名前


コメント内容





TOP back