当我使用pip install -r requirement.txt
命令时,我尝试在一个新的virtualenv目录中安装一些需求库。我有个错误:
Requirement already satisfied (use --upgrade to upgrade): wsgiref==0.1.2 in /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 (from -r requirement.txt (line 19))
Installing collected packages: greenlet, grequests, killproc, kombu, mccabe, pep8, psutil, pyflakes, pytz, redis, requests
Running setup.py install for greenlet
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -fno-tree-dominator-opts -arch x86_64 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/simple.c -o /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/simple.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-fno-tree-dominator-opts' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
building 'greenlet' extension
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c greenlet.c -o build/temp.macosx-10.9-intel-2.7/greenlet.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
Complete output from command /Users/penkzhou/.virtualenvs/JOB_ENV/bin/python -c "import setuptools, tokenize;__file__='/Users/penkzhou/.virtualenvs/JOB_ENV/build/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/pip-FNK0mO-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/penkzhou/.virtualenvs/JOB_ENV/include/site/python2.7:
running install
running build
running build_ext
creating /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/var
creating /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/var/folders
creating /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/var/folders/5h
creating /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn
creating /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T
creating /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -fno-tree-dominator-opts -arch x86_64 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/simple.c -o /var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/var/folders/5h/63q1xmj961b7hv9y0ntdt7gc0000gn/T/tmpXfAIrt/simple.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-fno-tree-dominator-opts' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
building 'greenlet' extension
creating build
creating build/temp.macosx-10.9-intel-2.7
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c greenlet.c -o build/temp.macosx-10.9-intel-2.7/greenlet.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
我已经安装了brew
,Python环境是由这个instruction安装的帐户。那么我想从头开始,换一台新的mac电脑帐户。那么我在virtualenv中安装一些lib时遇到了上述错误环境。我在谷歌上搜索-mno-fused-madd
但是没什么。所以呢有人知道吗?谢谢。你知道吗
好的。我找到一个解决办法here。可能我在安装
gevent
时丢失了一些细节。所以我需要先安装libevent:那么我必须设置这个标志以便gevent可以构建:
之后,我可以在virtualenv中成功地安装
gevent
。希望这对你们有帮助。你知道吗相关问题 更多 >
编程相关推荐