さらにチェックするためにこれをここに置いてください。
私はbrewをインストールしたpython(2.7.10と3.4.3)を持っているので、今のところ、私の3.5b2はmacパッケージからインストールされています(これはヘッダーに問題を引き起こす可能性があります)。 osx 10.10.3; 最新のXcode;
いずれにせよ、これがセットアップと結果(これまでのところ)です:
次に、次のことを試みます。
存在しないコンパイルフラグのエラーが発生します(3.4.3 pythonにインストールすると警告のみが発行されます)
(vhov) Yarkos-MacBook-Pro:hovercraft yak007$ python --version
Python 3.5.0b2
(vhov) Yarkos-MacBook-Pro:hovercraft yak007$ which python
/Users/yak007/workspace/hovercraft/env/vhov/bin/python
(vhov) Yarkos-MacBook-Pro:hovercraft yak007$ pip list
Cython (0.22)
docutils (0.12)
pip (7.0.3)
setuptools (17.1.1)
とキーアクション:
(vhov) Yarkos-MacBook-Pro:hovercraft yak007$ pip install watchdog
Collecting watchdog
Using cached watchdog-0.8.3.tar.gz
Collecting PyYAML>=3.10 (from watchdog)
Using cached PyYAML-3.11.tar.gz
Collecting argh>=0.24.1 (from watchdog)
Collecting pathtools>=0.1.1 (from watchdog)
Installing collected packages: PyYAML, argh, pathtools, watchdog
Running setup.py install for PyYAML
Running setup.py install for watchdog
Complete output from command /Users/yak007/workspace/hovercraft/env/vhov/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/z_/p0qs_dyn5w186pp5wym5c65c0000gp/T/pip-build-8i5b7kqd/watchdog/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/z_/p0qs_dyn5w186pp5wym5c65c0000gp/T/pip-jkl462at-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/yak007/workspace/hovercraft/env/vhov/include/site/python3.5/watchdog:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.5
creating build/lib.macosx-10.6-intel-3.5/watchdog
copying src/watchdog/__init__.py -> build/lib.macosx-10.6-intel-3.5/watchdog
copying src/watchdog/events.py -> build/lib.macosx-10.6-intel-3.5/watchdog
copying src/watchdog/version.py -> build/lib.macosx-10.6-intel-3.5/watchdog
copying src/watchdog/watchmedo.py -> build/lib.macosx-10.6-intel-3.5/watchdog
creating build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/__init__.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/api.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/fsevents.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/fsevents2.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/inotify.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/inotify_buffer.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/inotify_c.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/kqueue.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/polling.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/read_directory_changes.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
copying src/watchdog/observers/winapi.py -> build/lib.macosx-10.6-intel-3.5/watchdog/observers
creating build/lib.macosx-10.6-intel-3.5/watchdog/tricks
copying src/watchdog/tricks/__init__.py -> build/lib.macosx-10.6-intel-3.5/watchdog/tricks
creating build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/__init__.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/bricks.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/compat.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/decorators.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/delayed_queue.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/dirsnapshot.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/echo.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/event_backport.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/importlib2.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/platform.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/unicode_paths.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
copying src/watchdog/utils/win32stat.py -> build/lib.macosx-10.6-intel-3.5/watchdog/utils
running egg_info
writing requirements to src/watchdog.egg-info/requires.txt
writing dependency_links to src/watchdog.egg-info/dependency_links.txt
writing top-level names to src/watchdog.egg-info/top_level.txt
writing src/watchdog.egg-info/PKG-INFO
writing entry points to src/watchdog.egg-info/entry_points.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'src/watchdog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h' under directory 'src'
writing manifest file 'src/watchdog.egg-info/SOURCES.txt'
running build_ext
building '_watchdog_fsevents' extension
creating build/temp.macosx-10.6-intel-3.5
creating build/temp.macosx-10.6-intel-3.5/src
gcc-4.2 -fno-strict-aliasing -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -DWATCHDOG_VERSION_STRING="0.8.3" -DWATCHDOG_VERSION_MAJOR=0 -DWATCHDOG_VERSION_MINOR=8 -DWATCHDOG_VERSION_BUILD=3 -I/Users/yak007/workspace/hovercraft/env/vhov/include -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c src/watchdog_fsevents.c -o build/temp.macosx-10.6-intel-3.5/src/watchdog_fsevents.o -std=c99 -pedantic -Wall -Wextra -fPIC -Wno-error=unused-command-line-argument-hard-error-in-future
cc1: error: -Werror=unused-command-line-argument-hard-error-in-future: No option -Wunused-command-line-argument-hard-error-in-future
cc1: error: -Werror=unused-command-line-argument-hard-error-in-future: No option -Wunused-command-line-argument-hard-error-in-future
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't figure out the architecture type of: /var/folders/z_/p0qs_dyn5w186pp5wym5c65c0000gp/T//ccZjgonH.out
error: command 'gcc-4.2' failed with exit status 1
----------------------------------------
Command "/Users/yak007/workspace/hovercraft/env/vhov/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/z_/p0qs_dyn5w186pp5wym5c65c0000gp/T/pip-build-8i5b7kqd/watchdog/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/z_/p0qs_dyn5w186pp5wym5c65c0000gp/T/pip-jkl462at-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/yak007/workspace/hovercraft/env/vhov/include/site/python3.5/watchdog" failed with error code 1 in /private/var/folders/z_/p0qs_dyn5w186pp5wym5c65c0000gp/T/pip-build-8i5b7kqd/watchdog
それ以来、Python 3.5b2のパッケージインストールを削除し、 brew install python3 --devel
(python3.5b2のインストールを作成するため)、 pyvenv-3.5
で新しいvirtualenvを作成し、pythonバージョンなどを確認しました。
同じ失敗-したがって、これはPythonのインストール方法の混合に関するものではないようです。
代わりに、古いbrew info apple-gcc42
パッケージが原因のようです。 brew unlink apple-gcc42
にすると、インストールは機能します。 うまくいけば、これは他の誰かを助けるでしょう。
(vhov) Yarkos-MacBook-Pro:hovercraft yak007$ ls -l $(which gcc-4.2)
lrwxr-xr-x 1 yak007 staff 46 Jun 20 2013 /usr/local/bin/gcc-4.2 -> ../Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
こんにちは-私はこれと同じ問題を抱えており、Mac OSX 10.6にインストールしています(元の問題についてはhttps://github.com/getnikola/nikola/issues/2148を参照してください)。 python.orgからpython3.5をインストールしました。 コマンド
brew unlink apple-gcc42
単に与える
エラー:そのような樽はありません:/ usr / local / Cellar / apple-gcc42
他に何か提案はありますか?
ありがとう!
ジェリー。
MacのPython3.6.5を使用してvirtualenvで単純なpip install watchdog
を実行しようとしたときに、この問題が発生しました。
プラットフォームがOSXとして検出されたsetup.py
行34で、このコンパイル引数-Wno-error=unused-command-line-argument-hard-error-in-future
が追加されています。これは、古いXcodeインストールでデフォルトとして出荷されたgccではサポートされていません。
Xcodeの代わりにhomebrewgcc( gcc version 8.1.0 (Homebrew GCC 8.1.0)
)を使用しているので、これを修正するには、文字列macosx
をmacosy
のようなものに変更して、L34でのチェックをスキップする必要がありました。次に、 python3 setup.py install
を実行すると、インストールが成功しました。
最も参考になるコメント
それ以来、Python 3.5b2のパッケージインストールを削除し、
brew install python3 --devel
(python3.5b2のインストールを作成するため)、pyvenv-3.5
で新しいvirtualenvを作成し、pythonバージョンなどを確認しました。同じ失敗-したがって、これはPythonのインストール方法の混合に関するものではないようです。
代わりに、古い
brew info apple-gcc42
パッケージが原因のようです。brew unlink apple-gcc42
にすると、インストールは機能します。 うまくいけば、これは他の誰かを助けるでしょう。