|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
Collecting wordcloud
Using cached wordcloud-1.8.1.tar.gz (220 kB)
Requirement already satisfied: numpy>=1.6.1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from wordcloud) (1.19.5)
Requirement already satisfied: pillow in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from wordcloud) (8.1.0)
Requirement already satisfied: matplotlib in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from wordcloud) (3.3.4)
Requirement already satisfied: python-dateutil>=2.1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from matplotlib->wordcloud) (2.8.1)
Requirement already satisfied: cycler>=0.10 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from matplotlib->wordcloud) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from matplotlib->wordcloud) (2.4.7)
Requirement already satisfied: kiwisolver>=1.0.1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from matplotlib->wordcloud) (1.3.1)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from cycler>=0.10->matplotlib->wordcloud) (1.15.0)
Using legacy 'setup.py install' for wordcloud, since package 'wheel' is not installed.
Installing collected packages: wordcloud
Running setup.py install for wordcloud ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0h/68rqpfwx0ns09j2_44f89c_00000gn/T/pip-install-ylgqogj3/wordcloud_7947ae6b61a44efca83a8cb0546456c4/setup.py'"'"'; __file__='"'"'/private/var/folders/0h/68rqpfwx0ns09j2_44f89c_00000gn/T/pip-install-ylgqogj3/wordcloud_7947ae6b61a44efca83a8cb0546456c4/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0h/68rqpfwx0ns09j2_44f89c_00000gn/T/pip-record-a6qkwv04/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/wordcloud
cwd: /private/var/folders/0h/68rqpfwx0ns09j2_44f89c_00000gn/T/pip-install-ylgqogj3/wordcloud_7947ae6b61a44efca83a8cb0546456c4/
Complete output (24 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.9
creating build/lib.macosx-10.9-x86_64-3.9/wordcloud
copying wordcloud/wordcloud_cli.py -> build/lib.macosx-10.9-x86_64-3.9/wordcloud
copying wordcloud/_version.py -> build/lib.macosx-10.9-x86_64-3.9/wordcloud
copying wordcloud/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/wordcloud
copying wordcloud/tokenization.py -> build/lib.macosx-10.9-x86_64-3.9/wordcloud
copying wordcloud/wordcloud.py -> build/lib.macosx-10.9-x86_64-3.9/wordcloud
copying wordcloud/color_from_image.py -> build/lib.macosx-10.9-x86_64-3.9/wordcloud
copying wordcloud/__main__.py -> build/lib.macosx-10.9-x86_64-3.9/wordcloud
copying wordcloud/stopwords -> build/lib.macosx-10.9-x86_64-3.9/wordcloud
copying wordcloud/DroidSansMono.ttf -> build/lib.macosx-10.9-x86_64-3.9/wordcloud
UPDATING build/lib.macosx-10.9-x86_64-3.9/wordcloud/_version.py
set build/lib.macosx-10.9-x86_64-3.9/wordcloud/_version.py to '1.8.1'
running build_ext
building 'wordcloud.query_integral_image' extension
creating build/temp.macosx-10.9-x86_64-3.9
creating build/temp.macosx-10.9-x86_64-3.9/wordcloud
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c wordcloud/query_integral_image.c -o build/temp.macosx-10.9-x86_64-3.9/wordcloud/query_integral_image.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0h/68rqpfwx0ns09j2_44f89c_00000gn/T/pip-install-ylgqogj3/wordcloud_7947ae6b61a44efca83a8cb0546456c4/setup.py'"'"'; __file__='"'"'/private/var/folders/0h/68rqpfwx0ns09j2_44f89c_00000gn/T/pip-install-ylgqogj3/wordcloud_7947ae6b61a44efca83a8cb0546456c4/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0h/68rqpfwx0ns09j2_44f89c_00000gn/T/pip-record-a6qkwv04/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/wordcloud Check the logs for full command output.
本帖最后由 hrp 于 2021-2-18 22:13 编辑
你用的是macos么?你是从网络安装还是文件安装?从网络安装的话,需要本地C/C++编译器,因为wordcloud的macosx版本仅提供py27的预编译包,你是py39,安装时自动在本地执行编译过程,可能你本地没有安装编译器所以报错(就算你安装了编译器也可能编译不通过,因为wordcloud的pip页面显示wordcloud在macosx上编译出错,见下图)
而第三方网站www.lfd.uci.edu上也没有提供wordcloud的macosx版的预编译包下载,所以你想在macos上安装wordcloud有点困难。
|
|