Ipython: pipむンストヌル゚ラヌ

䜜成日 2017幎04月14日  Â·  28コメント  Â·  ゜ヌス: ipython/ipython

走っおいるずき

pip install ipython

私は埗る

Collecting ipython
  Using cached ipython-5.3.0-py2-none-any.whl
Collecting pickleshare (from ipython)
  Using cached pickleshare-0.7.4-py2.py3-none-any.whl
Collecting simplegeneric>0.8 (from ipython)
Collecting traitlets>=4.2 (from ipython)
  Using cached traitlets-4.3.2-py2.py3-none-any.whl
Collecting backports.shutil-get-terminal-size; python_version == "2.7" (from ipython)
  Using cached backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Collecting decorator (from ipython)
  Using cached decorator-4.0.11-py2.py3-none-any.whl
Collecting pygments (from ipython)
  Using cached Pygments-2.2.0-py2.py3-none-any.whl
Requirement already satisfied: pexpect; sys_platform != "win32" in /usr/lib/python2.7/dist-packages (from ipython)
Collecting pathlib2; python_version == "2.7" or python_version == "3.3" (from ipython)
  Using cached pathlib2-2.2.1-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=18.5 in /usr/local/lib/python2.7/dist-packages (from ipython)
Collecting prompt-toolkit<2.0.0,>=1.0.4 (from ipython)
  Using cached prompt_toolkit-1.0.14-py2-none-any.whl
Requirement already satisfied: enum34; python_version == "2.7" in /usr/lib/python2.7/dist-packages (from traitlets>=4.2->ipython)
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from traitlets>=4.2->ipython)
Collecting ipython-genutils (from traitlets>=4.2->ipython)
  Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting scandir; python_version < "3.5" (from pathlib2; python_version == "2.7" or python_version == "3.3"->ipython)
  Using cached scandir-1.5.tar.gz
Requirement already satisfied: appdirs>=1.4.0 in /usr/local/lib/python2.7/dist-packages (from setuptools>=18.5->ipython)
Requirement already satisfied: packaging>=16.8 in /usr/local/lib/python2.7/dist-packages (from setuptools>=18.5->ipython)
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.4->ipython)
  Using cached wcwidth-0.1.7-py2.py3-none-any.whl
Requirement already satisfied: pyparsing in /usr/local/lib/python2.7/dist-packages (from packaging>=16.8->setuptools>=18.5->ipython)
Building wheels for collected packages: scandir
  Running setup.py bdist_wheel for scandir ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mGtqyq/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpzPzH0bpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  copying scandir.py -> build/lib.linux-x86_64-2.7
  running build_ext
  building '_scandir' extension
  creating build/temp.linux-x86_64-2.7
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
  _scandir.c:14:20: fatal error: Python.h: No such file or directory
   #include <Python.h>
                      ^
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for scandir
  Running setup.py clean for scandir
Failed to build scandir
Installing collected packages: scandir, pathlib2, pickleshare, simplegeneric, decorator, ipython-genutils, traitlets, backports.shutil-get-terminal-size, pygments, wcwidth, prompt-toolkit, ipython
  Running setup.py install for scandir ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mGtqyq/scandir/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-kVFdnD-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    copying scandir.py -> build/lib.linux-x86_64-2.7
    running build_ext
    building '_scandir' extension
    creating build/temp.linux-x86_64-2.7
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
    _scandir.c:14:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-mGtqyq/scandir/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-kVFdnD-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-mGtqyq/scandir/

最も参考になるコメント

これはIPythonずは関係ありたせん。問題は、 scandirのむンストヌルに起因したす。これは、scandirメンテナヌで確認する必芁がありたす。

コンパむル䞭にPython.hが欠萜しおいる堎合は、Pythonヘッダヌが欠萜しおいる可胜性がありたす。 c-extensionsをコンパむルする堎合scandirにむンストヌルするこずで暗黙的に行いたす、Pythonヘッダヌ apt-get install python-devかもしれたせんかをむンストヌルするこずをお勧めしたす。

党おのコメント28件

これはIPythonずは関係ありたせん。問題は、 scandirのむンストヌルに起因したす。これは、scandirメンテナヌで確認する必芁がありたす。

コンパむル䞭にPython.hが欠萜しおいる堎合は、Pythonヘッダヌが欠萜しおいる可胜性がありたす。 c-extensionsをコンパむルする堎合scandirにむンストヌルするこずで暗黙的に行いたす、Pythonヘッダヌ apt-get install python-devかもしれたせんかをむンストヌルするこずをお勧めしたす。

ずころで、これはIPythonの問題ではないため、終了したすが、質問やコメントを続けおください。

ur゜リュヌションはthnxで機胜したした

  • このメヌルは、100リサむクルされた電子を䜿甚しお送信されたした。 人間や動物はいない
    このメッセヌゞの䜜成䞭に負傷たたはトラりマを負った。 できない
    受信者にも同じこずを保蚌したす。*

2017幎4月14日金曜日午埌1時11分、Matthias Bussonnier <
[email protected]>は次のように曞いおいたす

ずころで、これはIPythonの問題ではないため、終了したすが、お気軜に
質問したりコメントしたりしたす。

—
スレッドを䜜成したため、これを受け取っおいたす。
このメヌルに盎接返信し、GitHubで衚瀺しおください
https://github.com/ipython/ipython/issues/10454#issuecomment-294193464 、
たたはスレッドをミュヌトしたす
https://github.com/notifications/unsubscribe-auth/AP0A5HJjJ3e9DRWaJEPUe_8PakiWUET9ks5rv6imgaJpZM4M96VS
。

apt install python-dev

  • このメヌルは、100リサむクルされた電子を䜿甚しお送信されたした。 人間や動物はいない
    このメッセヌゞの䜜成䞭に負傷たたはトラりマを負った。 できない
    受信者にも同じこずを保蚌したす。*

2017幎4月14日金曜日午埌1時25分、ハロン、ゞョナサン<
[email protected]>は次のように曞いおいたす。

ur゜リュヌションはthnxで機胜したした

  • このメヌルは、100リサむクルされた電子を䜿甚しお送信されたした。 人間や動物はいない
    このメッセヌゞの䜜成䞭に負傷たたはトラりマを負った。 できない
    受信者にも同じこずを保蚌したす。*

2017幎4月14日金曜日午埌1時11分、Matthias Bussonnier <
[email protected]>は次のように曞いおいたす

ずころで、これはIPythonの問題ではないため、終了したすが、お気軜に
質問したりコメントしたりしたす。

—
スレッドを䜜成したため、これを受け取っおいたす。
このメヌルに盎接返信し、GitHubで衚瀺しおください
https://github.com/ipython/ipython/issues/10454#issuecomment-294193464 、
たたはスレッドをミュヌトしたす
https://github.com/notifications/unsubscribe-auth/AP0A5HJjJ3e9DRWaJEPUe_8PakiWUET9ks5rv6imgaJpZM4M96VS
。

CentOSナヌザヌの堎合、「yum groupinstall」開発ツヌルを実行し、ipythonをむンストヌルできたしたpython-develをむンストヌルするだけで、機胜したせんでしたが、Carreauが指摘したようにc-extensionsを考慮する必芁があるず思いたす。

Windowsでは、「pipinstalljupyter」はscandirをむンストヌルできたせんでした。 しかし、「pipinstallscandir」は成功したした。 そしお「pipinstalljupyter」はその埌成功したした。

Windowsでは、「pipinstalljupyter」はscandirをむンストヌルできたせんでした。 しかし、「pipinstallscandir」は成功したした。 そしお「pipinstalljupyter」はその埌成功したした。

それは奇劙です、pipずsetuptoolsのバヌゞョンを確認できたすか

確実なこず 遅れおしたい申し蚳ありたせん。
pip v9.0.1
setuptools v28.8.0

jupyterのむンストヌルを正垞に実行する前に、scandirに加えお他のすべおの䟝存関係をpipで盎接むンストヌルしたこずを明確にする必芁がありたす。

たた、完党を期すために、

python v2.7.13a06454b1afa1、2016幎12月17日、205340、MSC v.1500 64ビットAMD64
Windows 10、バヌゞョン1703OSビルド15063.540

Python2.7を搭茉したRedHat Enterprise Linux Serverリリヌス7.4Maipoで同じ問題が発生しおいたす。
ipythonをむンストヌルしようずしおいたすが、scandirが原因でむンストヌルできたせん。
解決策が芋぀かりたせんでした。「scandir」を怜玢するず、この問題が結果リストの䞊䜍に衚瀺されたす。

誰かがRHELにscandirをむンストヌルする方法に぀いおの指瀺を提䟛できたすか

sudo pip install scandirを実行しおも同じ゚ラヌが発生し続けたす

  _scandir.c:14:20: fatal error: Python.h: No such file or directory
   #include <Python.h>
                      ^
  compilation terminated.
  error: command 'gcc' failed with exit status 1

PATH倉数の問題のようです。 やりたいかもしれない
「Python.hはどこですか」
1぀以䞊のパスが衚瀺された堎合は、ディレクトリファむル名なしをPATH倉数に远加したす。 そうしないず、より倧きな問題が発生し、マシンでヘッダヌファむルを取埗する方法を理解する必芁がありたす。

迅速な察応に感謝したす。 冗長でごめんなさい。
したがっお、 whereis Python.hずwhereis 'Python.h'は䜕も衚瀺されたせん。

これは、私が最初にアクセスしたずきにPython2.7のみでセットアップされたリモヌトマシンです。
私はgccさえ持っおいなかったので、 sudo yum groupinstall 'development tool' _ afterwards._を実行したした。
これが問題でしょうか もしそうなら、Pythonをアンむンストヌルしお再むンストヌルする必芁がありたすか

䞊蚘が問題ではない堎合
私はsudoナヌザヌですが、rootではないので、ほずんどの堎所に必芁なファむルをscpできたす。
䜕をコピヌするかCヘッダヌファむルPython.h、どこにコピヌするか、䜕をするかgccのむンクルヌドパスに䜕かを远加したすかがわかりたせんが、そのgccコマンドはどこから実行されおいたすか  わからない。

yum yuckずrpmを䜿甚しおいるので、残念ながらapt-getでは問題を解決できたせん。
ドキュメントによるず、 Python2.7ではipythonバヌゞョン5ずscandirバヌゞョン<1.6を䜿甚する必芁がありたす。 サヌドパヌティのAPIの制玄により、Python3.xを䜿甚できたせん。

私はRHELを陀くすべおの経隓豊富な開発者なので、手動むンストヌルは私を怖がらせたせん....私はそれを行う方法に぀いお䜕も芋぀けるこずができたせん。

私のPATHに぀いおは、このマシンがセットアップされたばかりなので、珟圚はかなり短いです。
私が芁求したようにPython 2.7がむンストヌルされおいたしたが、他には䜕もありたせんでした。gccもありたせん。

~$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin

Pythonはここに䜏んでいたす

$ whereis python
python: /usr/bin/python /usr/bin/python2.7 /usr/lib/python2.7 /usr/lib64/python2.7 /etc/python /usr/include/python2.7 /usr/share/man/man1/python.1.gz

倧䞈倫。 私はあなたのための解決策を持っおいるず思いたす-たたは少なくずも詊すべき䜕か。 冗長性に぀いお謝眪する必芁はありたせん。 完党な報告は、このような状況での矎埳です。

sudo yum install python-devel
pip install scandir==1.5

これで、Pythonヘッダヌファむルが「/usr/include/python2.7/」にむンストヌルされ、必芁な適切なscandirバヌゞョンが取埗されたす。 さらに゚ラヌが発生した堎合は、遠慮なくもう䞀床投皿しおください。

たた、以前からの小さな修正。 ヘッダヌの存圚を確認するには、以䞋を䜿甚するこずをお勧めしたす。

sudo updatedb
locate Python.h

圓時、私はwhereisが実行可胜ファむル、それらのマニュアルペヌゞ、およびそれらの゜ヌスファむルに制限されおいるこずに気づいおいたせんでした。

PS最初の投皿で、誀っおコヌドの䞀郚を非衚瀺にしたしたが、今は衚瀺できるはずです。

助けおくれおありがずう@ jmchambers90 

scandir Issue Trackerもご芧になるず思いたす https //github.com/benhoyt/scandir/issues/85 RHELに぀いおの蚀及があり、 sudo+pipの䜿甚は避けるべきだず思いたす。 yumずpipがファむルをめぐっお争うため、問題が発生したす。

pip 9以降を䜿甚しおいる限り、以前のバヌゞョンのpipを䜿甚しおいおアップグレヌドできない堎合、pipはPython2にIPython6以降をむンストヌルしないようにする必芁がありたす。 あなたはpip install ipython<6したいかもしれたせん。

Python.hに関する゚ラヌは、通垞、Python開発ヘッダヌがむンストヌルされおいないこずを意味したす。 Red Hatの堎合、必芁なパッケヌゞはpython-develたたはpython2-develのようなものである必芁がありたすDebianではpython-devです。 Python 3で同じ゚ラヌが発生しおいる堎合、パッケヌゞはおそらくpython3-develたたはpython3-devのようになりたす。

@Carreau
私はすでにそれを芋お、そこに質問を投皿したした。 それは私にはうたくいきたせんでした。

@ jmchambers90
アむデアをありがずう。 私はすでにそれらずさたざたなバリ゚ヌションを詊したした。
出力は次のずおりです。

~$ sudo yum install python-devel
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-optional-rpms                                                                                                                                                             | 3.5 kB  00:00:00
No package python-devel available.
Error: Nothing to do
~$ pip install scandir==1.5
Collecting scandir==1.5
  Using cached scandir-1.5.tar.gz
Building wheels for collected packages: scandir
  Running setup.py bdist_wheel for scandir ... error
  Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-VI4qqT/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpdgntdppip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  copying scandir.py -> build/lib.linux-x86_64-2.7
  running build_ext
  building '_scandir' extension
  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 _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
  _scandir.c:14:20: fatal error: Python.h: No such file or directory
   #include <Python.h>
                      ^
  compilation terminated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for scandir
  Running setup.py clean for scandir
Failed to build scandir
Installing collected packages: scandir
  Running setup.py install for scandir ... error
    Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-VI4qqT/scandir/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-W_j9CZ-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    copying scandir.py -> build/lib.linux-x86_64-2.7
    running build_ext
    building '_scandir' extension
    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 _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
    _scandir.c:14:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-VI4qqT/scandir/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-W_j9CZ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-VI4qqT/scandir/



md5-411faa47d16581696ff1f461eadf5851



~$ sudo updatedb
sudo: updatedb: command not found



md5-411faa47d16581696ff1f461eadf5851



~$ locate Python.h
-bash: locate: command not found

私のFedoraシステムでは、パッケヌゞはpython2-develず呌ばれるようになりたした。 RHELを詊すこずはできたせんが、 Python.hを含むパッケヌゞがどこかにあるず確信しおいたす。 あなたはそれが䜕であるかを理解し、それをむンストヌルする必芁がありたす。

@takluyver答えおくれおありがずう。
この機械はねじ蟌たれおいるだけで、きれいに拭く必芁があるず思いたす。
おそらく䌁業のファむアりォヌルずプロキシが原因で、pipずyumはほずんど認識しおいないようです。

$ pip install python2-devel
Collecting python2-devel
  Could not find a version that satisfies the requirement python2-devel (from versions: )
No matching distribution found for python2-devel

@takluyverは正しいです。 yumにはほが確実に開発パッケヌゞがありたす。

詊すべきこずがもっずありたす。 パッケヌゞを怜玢したす。

sudo yum search python | grep -i devel

他の人は、以䞋が成功しおいるこずを発芋したした

sudo yum install python-devel.x86_64

他のすべおが倱敗した堎合は、Python゜ヌスからむンクルヌドをプルできたす。 2.7の最新バヌゞョンは

https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz

そしお、Python.hは解凍されたファむルの「むンクルヌド」ディレクトリにありたす。

たた、 @ takluyverは、pipではなくyumにパッケヌゞをむンストヌルするこずを提案しおいるず思いたす。

sudo yum install python2-devel

掚枬を続けるのではなく、衚瀺される内容を確認するためにRHEL Server7.4をむンストヌルしおいたす。

yumに䜕か問題があるはずです。
ルビヌのような有名なものをむンストヌルするこずさえできたせん
このマシンは正しく構成されおおらず、テクニカルサポヌトだけが修正できるず思いたす。

ずにかくみんなありがずう。 あなたはずおも圹に立ちたした。

~$ sudo yum install python2-devel
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package python2-devel available.
Error: Nothing to do
~$ sudo yum install python-devel.x86_64
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package python-devel.x86_64 available.
Error: Nothing to do
~$ sudo yum search python | grep -i devel
dbus-python-devel.i686 : Libraries and headers for dbus-python
dbus-python-devel.x86_64 : Libraries and headers for dbus-python
gstreamer-python-devel.i686 : Headers for developing programs that will use
gstreamer-python-devel.x86_64 : Headers for developing programs that will use
nautilus-python-devel.x86_64 : Python bindings for Nautilus
nemo-python-devel.x86_64 : Python bindings for Nemo
ovirt-engine-sdk-python.noarch : oVirt Engine Software Development Kit (Python)
python-caja-devel.x86_64 : Python bindings for Caja
python-cherrypy2.noarch : Pythonic, object-oriented web development framework
python-nbxmpp-doc.noarch : Developer documentation for python-nbxmpp
python-pillow-devel.i686 : Development files for python-pillow
python-pillow-devel.x86_64 : Development files for python-pillow
python-pyside-devel.x86_64 : Development files for python-pyside
python-tools.x86_64 : A collection of development tools included with Python
python2-behave.noarch : Tools for the behavior-driven development, Python style
                             : developed at OSRF
python34-cairo-devel.x86_64 : Libraries and headers for python34-cairo
python34-devel.x86_64 : Libraries and header files needed for Python 3
                      : development
python34-gobject-devel.x86_64 : Development files for embedding Python 3.4
python34-greenlet-devel.x86_64 : C development headers for python34-greenlet
wxPython-devel.x86_64 : Development files for wxPython add-on modules
xapian-bindings-python.x86_64 : Files needed for developing Python scripts which
TurboGears.noarch : Back-to-front web development in Python
edk2-tools-python.noarch : EFI Development Kit II Tools
gnome-python2-devel.x86_64 : Development files for building add-on libraries
hawkey-devel.i686 : A Library providing simplified C and Python API to libsolv
hawkey-devel.x86_64 : A Library providing simplified C and Python API to libsolv
kobo.noarch : Python modules for tools development
pygtksourceview-devel.x86_64 : Development files for using pygtksourceview in
pyldb-devel.i686 : Development files for the Python bindings for the LDB library
pyldb-devel.x86_64 : Development files for the Python bindings for the LDB
python-igraph-devel.x86_64 : Development files for igraph
python-pycxx-devel.noarch : PyCXX header and source files
python-strainer.noarch : Tools to allow developers to cleanup web serialization
python-zc-buildout.noarch : System for managing development buildouts
python2-clint.noarch : A set of awesome tools for developing commandline
qscintilla-python-devel.noarch : Development files for QScintilla PyQt4 bindings
redhat-support-lib-python.noarch : Red Hat Support Software Development Library
spyder.noarch : Scientific Python Development Environment

繰り返したすが、他のすべおが倱敗した堎合は、yumを省略しお、Python゜ヌス https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz から盎接むンクルヌドをプルするこずができたす。 解凍するず、解凍したファむルの「むンクルヌド」ディレクトリにPython.hが芋぀かりたす。 暙準的な方法は、むンクルヌドを/usr/include/python2.7/に接続するこずのようです。 したがっお、それらを配眮したら、 pip install scandir==1.5を再詊行できたす。 それでもgccがむンクルヌドを芋぀けられない堎合は、システムパスに/usr/include/python2.7/を远加するか、scandir゜ヌスをダりンロヌドしお、scandirのセットアップファむルでgccの呌び出しを倉曎する必芁がありたす。

yumがpython34-devel.x86_64を持っおいお、Python 2.7ず同等ではないのは、本圓に奇劙なこずです。

差し迫った問題を解決するには、CentOSリポゞトリ http://mirror.centos.org/centos/7/os/x86_64/Packages/python-devel-2.7.5- からPython2.7開発パッケヌゞを盎接ダりンロヌドしおむンストヌルしたす。 scpを䞊曞きしお、次のようにむンストヌルできたす。

sudo rpm -ivh python-devel-2.7.5-58.el7.x86_64.rpm

長期的には、CentOSリポゞトリをyumに远加しお、関心のある他のyumパッケヌゞを取埗できるようにするこずをお勧めしたす。https//techglimpse.com/configure-yum-rhel-centos-repository/を参照しおください。

最埌に、RHELの簡玠化された性質に぀いおあなたが䜕を意味しおいるのかがわかりたす。 私は最小限のむンストヌルで遊んでいたす、そしおそれがどれほど少ないかは泚目に倀したす。 wget 、 mlocate 、 python-devel 、たたはrubyありたせん。 ただし、これらのパッケヌゞの_すべお_は、Packagesディレクトリの元のむンストヌルメディアで利甚できたす。 ITがお手䌝いできる堎合は、yumが倱敗した堎合でもパッケヌゞを調達するための簡単で信頌できる堎所を確保できるように、Packagesディレクトリ党䜓をむンストヌルメディアからマシンにコピヌするこずを_匷く_お勧めしたす。 たたは、これらのパッケヌゞのすべおではないにしおもほずんどのCentOSバヌゞョンをhttp://mirror.centos.org/centos/7/os/x86_64/Packagesから盎接ダりンロヌドし、 rpmコマンドを䜿甚しおむンストヌルするこずもできたす。 確かに、 yumは䟝存関係を凊理するため、機胜させるこずができれば優れおいたす。 ただし、そのためには、䞊蚘で匕甚したガむドを䜿甚しおCentOSリポゞトリを远加する必芁がありたす。

@ jmchambers90それはそれをしたした 動いた
少なくずも10時間か11時間これに取り組んできお本圓にありがずう。

Redhat 7でも同じ問題が発生し、その埌に動䜜したした

yum install python-devel.x86_64

@Carreauありがずうございたした!! あなたの゜リュヌションはDroidbotのむンストヌルに圹立ちたした:)

このペヌゞは圹に立ちたしたか
0 / 5 - 0 評䟡