お世話になっております。
pythonistaというiOSでpythonがいじれるアプリに関する質問です。
http://hitoriblog.com/?p=42623
上記のリンクの記事を参考にして、StaShというものをインストールすることによりpythonista上でpip等のコマンドが利用できる環境を作ることが出来ました。
以前、同じような投稿をしまして(https://teratail.com/questions/113293)知恵を貸して頂き「bottlenose」をインストールすることが出来たのですが、今度は「lxml」のインストールで躓いてしまいました。
まずは普通にpip installしようとするとoserror
python
1pip install lxml 2 3Querying PyPI ... 4Downloading package ... 5Opening: https://pypi.python.org/packages/e1/4c/d83979fbc66a2154850f472e69405572d89d2e6a6daee30d18e83e39ef3a/lxml-4.1.1.tar.gz 6Save as: /private/var/mobile/Containers/Data/Application/F21B7DB9-9AFF-4992-9160-652B6FB1B374/tmp//lxml-4.1.1.tar.gz (2380804 bytes) 7 2380804 [100.00%] 8Extracting archive file ... 9Archive extracted. 10Running setup file ... 11Building lxml version 4.1.1. 12Building without Cython. 13OSError(1, 'Operation not permitted') 14Failed to run setup.py 15Fall back to directory guessing ... 16Package installed: lxml
次に上の投稿で教えていただいた方法でやってもエラー
python
1pip install https://github.com/lxml/lxml/archive/master.zip 2 3[~/Documents]$ pip install https://github.com/lxml/lxml/archive/master.zip 4Working on URL repository ... 5Opening: https://github.com/lxml/lxml/archive/master.zip 6Save as: /private/var/mobile/Containers/Data/Application/F21B7DB9-9AFF-4992-9160-652B6FB1B374/tmp//master.zip 7 1014448 8Extracting archive file ... 9Running setup file ... 10Building lxml version 4.1.1. 11RuntimeError("ERROR: Trying to build without Cython, but pre-generated 'src/lxml/etree.c' is not available (pass --without-cython to ignore this error).",) 12Failed to run setup.py 13Fall back to directory guessing ... 14Error: Cannot locate packages. Manual installation required. 15 16
その他に調べてみた方法でやってもエラーが出てしましました…
python
1pip install git+https://github.com/lxml/lxml 2 3 4[~/Documents]$ pip install git+https://github.com/lxml/lxml 5Working on GitHub repository ... 6stash: <type 'exceptions.ValueError'>: too many values to unpack 7
解決方法をご教示ください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/02/14 12:16
2018/02/14 12:17
2018/02/14 13:25
2018/02/14 13:28
2018/02/14 13:38
2018/02/14 13:57
2018/02/14 21:45