2015-10-19 8 views
9

をインストールする誰もがここに公式サイトの指示に従ってpip install -U PySideを実行するとき、次のエラーを回避する方法を知っています:私はすでに正常brew install qtを行っているhttps://pypi.python.org/pypi/PySide/#installing-pyside-on-a-mac-os-x-systemピップ-U PySideエラー

注意。

You are using pip version 7.0.3, however version 7.1.2 is available. 
You should consider upgrading via the 'pip install --upgrade pip' command. 
Collecting PySide 
    Using cached PySide-1.2.4.tar.gz 
Installing collected packages: PySide 
    Running setup.py install for PySide 
    Complete output from command /Applications/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-0r7hrI-record/install-record.txt --single-version-externally-managed --compile: 
    Removing /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_package 
    running install 
    running build 
    Python architecture is 64bit 
    Inserting path "/private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_install/py2.7-qt4.8.6-64bit-release/bin" to environment 
    ============================== 
    Package version: 1.2.4 
    Build type: Release 
    Build tests: False 
    --- 
    Make path: /usr/bin/make 
    Make generator: Unix Makefiles 
    Make jobs: 
    --- 
    Script directory: /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide 
    Sources directory: /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/sources 
    Build directory: /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_build/py2.7-qt4.8.6-64bit-release 
    Install directory: /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_install/py2.7-qt4.8.6-64bit-release 
    Python site-packages install directory: /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_install/py2.7-qt4.8.6-64bit-release/lib/python2.7/site-packages 
    --- 
    Python executable: /Applications/anaconda/bin/python 
    Python includes: /Applications/anaconda/include/python2.7 
    Python library: /Applications/anaconda/lib/libpython2.7.dylib 
    Python prefix: /Applications/anaconda 
    Python scripts: /Applications/anaconda/bin 
    --- 
    Qt qmake: /Applications/anaconda/bin/qmake 
    Qt version: 4.8.6 
    Qt bins: /Applications/anaconda/bin 
    Qt plugins: /Applications/anaconda/plugins 
    --- 
    OpenSSL libs: None 
    ============================== 
    Creating build folder /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_build/py2.7-qt4.8.6-64bit-release... 
    Creating install folder /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_install/py2.7-qt4.8.6-64bit-release... 
    Building module shiboken... 
    Creating module build folder /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_build/py2.7-qt4.8.6-64bit-release/shiboken... 
    Configuring module shiboken (/private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/sources/shiboken)... 
    Running process: /usr/local/bin/cmake -G "Unix Makefiles" -DQT_QMAKE_EXECUTABLE=/Applications/anaconda/bin/qmake -DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_install/py2.7-qt4.8.6-64bit-release /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/sources/shiboken -DPYTHON_EXECUTABLE=/Applications/anaconda/bin/python -DPYTHON_INCLUDE_DIR=/Applications/anaconda/include/python2.7 -DPYTHON_LIBRARY=/Applications/anaconda/lib/libpython2.7.dylib -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes -DALTERNATIVE_QT_INCLUDE_DIR=/Applications/anaconda/include 
    /usr/local/bin/cmake -G Unix Makefiles -DQT_QMAKE_EXECUTABLE=/Applications/anaconda/bin/qmake -DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_install/py2.7-qt4.8.6-64bit-release /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/sources/shiboken -DPYTHON_EXECUTABLE=/Applications/anaconda/bin/python -DPYTHON_INCLUDE_DIR=/Applications/anaconda/include/python2.7 -DPYTHON_LIBRARY=/Applications/anaconda/lib/libpython2.7.dylib -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes -DALTERNATIVE_QT_INCLUDE_DIR=/Applications/anaconda/include 
    -- The C compiler identification is AppleClang 7.0.0.7000072 
    -- The CXX compiler identification is AppleClang 7.0.0.7000072 
    CMake Error at /usr/local/Cellar/cmake/3.3.0/share/cmake/Modules/Platform/Darwin.cmake:76 (message): 
     CMAKE_OSX_DEPLOYMENT_TARGET is '10.5' but CMAKE_OSX_SYSROOT: 

     "" 

     is not set to a MacOSX SDK with a recognized version. Either set 
     CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to 
     empty. 
    Call Stack (most recent call first): 
     /usr/local/Cellar/cmake/3.3.0/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include) 
     CMakeLists.txt:2 (project) 


    -- Configuring incomplete, errors occurred! 
    See also "/private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/pyside_build/py2.7-qt4.8.6-64bit-release/shiboken/CMakeFiles/CMakeOutput.log". 
    error: Error configuring shiboken 

    ---------------------------------------- 
Command "/Applications/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-0r7hrI-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/dy/ttgqhqqx3g9bsbsnqnxsk2z80000gq/T/pip-build-CPxEmt/PySide 

UPDATE(2016年3月16日):

私は最近、完全に更新のMac OS X 10.11(エル・キャピタン)の上に私の手を得ました。私は正常にbrew install qtに進み、pip install -U PySideをもう一度試みました(これらの指示に従って:https://pypi.python.org/pypi/PySide/#installing-pyside-on-a-mac-os-x-system)。残念ながら、私はもう一度、エラーを受け、:

Collecting PySide 
    Downloading PySide-1.2.4.tar.gz (9.3MB) 
    100% |████████████████████████████████| 9.3MB 162kB/s 
Installing collected packages: PySide 
    Running setup.py install for PySide ... error 
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/km/x8ww58k15h74q73fvrbqxym40000gp/T/pip-build-ozZWDt/PySide/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/km/x8ww58k15h74q73fvrbqxym40000gp/T/pip-YVPqB6-record/install-record.txt --single-version-externally-managed --compile: 
    Removing /private/var/folders/km/x8ww58k15h74q73fvrbqxym40000gp/T/pip-build-ozZWDt/PySide/pyside_package 
    running install 
    running build 
    Python architecture is 64bit 
    error: Failed to find cmake. Please specify the path to cmake with --cmake parameter. 

    ---------------------------------------- 
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/km/x8ww58k15h74q73fvrbqxym40000gp/T/pip-build-ozZWDt/PySide/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/km/x8ww58k15h74q73fvrbqxym40000gp/T/pip-YVPqB6-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/km/x8ww58k15h74q73fvrbqxym40000gp/T/pip-build-ozZWDt/PySide/ 

それは私のオリジナルのポストので、何ヶ月をされているとupvotesによって判断すると、私はこの問題を持つだけではありませんよ。そのように、私はおそらくhttps://pypi.python.org/pypi/PySide/#installing-pyside-on-a-mac-os-x-systemへの指示が単に時代遅れであると思われ始めている。誰かが実際にこれを動作させる場合は、レシピをアップロードしてください。ありがとうございました。

+1

MacOS XバイナリPySideバージョン1.2.4ではまだリリースされていません。 http://pyside.readthedocs.org/en/latest/building/macosx.htmlのバイナリをビルドしたり、以前のバージョン1.2.2の公式バイナリを使うことができます。 'pip install pyside == 1.2.2 ' – rlacko

+0

同じエラーです。今この質問に2ヶ月以上苦しんでいます。 – warship

+3

これに関する更新はありますか?私はエル・カピタンで同じエラーがあります – user1387717

答えて

3

まず第一に、これは私がstackoverflowの中で何かを答える午前初めてなので、私と一緒にいくつかの忍耐を持ってください。..

私はpysideをインストールするためにcmakeのをインストールしていた、と私は同じ問題を抱えていました君は。そこで、私は自家製で試しました:

$ brew doctor 

それはcmakeがインストールされているがリンクされていないと言いました。それをリンクするためには、私は自作で実行する必要がありました:それは今インストールされていると、それは動作しますが、

$ pip3.4 install -U PySide 

をそして、それは働いていた。これがお役に立てば幸い:その後

$ brew link cmake 

、私は再び試してみました。

+0

これを理解するのにほぼ1年かかりましたが、待つだけの価値があります。 – warship

0

システムにバイナリPythonモジュールをインストールするには、ビルドツールを使用してOS Xマシンを適切に設定する必要があります。これは、最新のOS Xバージョンとコマンドラインツールをインストールした最新のXCodeを使用することを意味します。

OSターゲットのバージョンが10.5であることがわかりましたが、OS Xの現在のバージョンは10.11 ...と非常に古いSDKのように聞こえます。

0

私は私の道にCMakeのを追加することにより、第二の問題を解決:

$> PATH = "/アプリケーション/ CMake.app /コンテンツ/ binに": "$ PATHに"

cmakeのは、実際にできる方法見つけられた。私はまだ最初の問題で困っている。実際、私はCMakeを扱った後に最初の問題を出します。

  • のMac OS X(10.10.5)
  • のPython 2.7.10
  • ピップ8.0.2
  • のQt 4.8.6
  • CMakeの3.6:

    は、ここに私の設定です。 0-rc02

  • Xcode Commad Linesツールがインストールされています。
2

私はすべてを試しましたが、ピップではできませんでした。最後に私は自作で試しました:

$ brew install pyside 

それはうまくいきます!

私はMac OS X 10.11(El Capitan)です。

+0

ええ、それはいいです。それも私のために働く、私はちょうどそれがウェブサイトで指示されたpipのインストールでは動作しないという事実に注意を引くことを望んでいた。 – warship

+4

は、自家製のBoneyardに移行したようです。「brew install homebrew/boneyard/pyside':」( – mfink