python下载wordcloud时为啥出现一片错误_安装wordcloud时出现错误

在Mac上尝试使用sudo pip安装wordcloud时遇到了权限问题和编译错误。提示目录权限不正确,并建议使用sudo的-H标志。安装过程中,编译wordcloud的query_integral_image扩展时,链接器找不到-lgcc_s.10.5库,导致安装失败。
摘要由CSDN通过智能技术生成

idomyoung@idomyeongs-MacBook-Pro:~$ sudo pip install wordcloud

Password:

The directory '/Users/idomyoung/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/idomyoung/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting wordcloud

Downloading wordcloud-1.2.tar.gz (162kB)

100% |████████████████████████████████| 163kB 115kB/s

Installing collected packages: wordcloud

Running setup.py install for wordcloud

Complete output from command /Users/idomyoung/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-h0FZer/wordcloud/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-56Yo14-record/install-record.txt --single-version-externally-managed --compile:

running install

running build

running build_py

creating build

creating build/lib.macosx-10.5-x86_64-2.7

creating build/lib.macosx-10.5-x86_64-2.7/wordcloud

copying wordcloud/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/wordcloud

copying wordcloud/color_from_image.py -> build/lib.macosx-10.5-x86_64-2.7/wordcloud

copying wordcloud/wordcloud.py -> build/lib.macosx-10.5-x86_64-2.7/wordcloud

copying wordcloud/stopwords -> build/lib.macosx-10.5-x86_64-2.7/wordcloud

copying wordcloud/DroidSansMono.ttf -> build/lib.macosx-10.5-x86_64-2.7/wordcloud

running build_ext

building 'wordcloud.query_integral_image' extension

creating build/temp.macosx-10.5-x86_64-2.7

creating build/temp.macosx-10.5-x86_64-2.7/wordcloud

gcc -fno-strict-aliasing -I/Users/idomyoung/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/idomyoung/anaconda/include/python2.7 -c wordcloud/query_integral_image.c -o build/temp.macosx-10.5-x86_64-2.7/wordcloud/query_integral_image.o

wordcloud/query_integral_image.c:16230:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {

^

wordcloud/query_integral_image.c:302:29: warning: unused function '__Pyx_Py_UNICODE_strlen' [-Wunused-function]

static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)

^

wordcloud/query_integral_image.c:16370:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]

static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {

^

wordcloud/query_integral_image.c:14326:26: warning: unused function '__Pyx_GetBufferAndValidate' [-Wunused-function]

static CYTHON_INLINE int __Pyx_GetBufferAndValidate(

^

wordcloud/query_integral_image.c:14360:27: warning: unused function '__Pyx_SafeReleaseBuffer' [-Wunused-function]

static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info) {

^

wordcloud/query_integral_image.c:14433:1: warning: unused function '__pyx_add_acquisition_count_locked' [-Wunused-function]

__pyx_add_acquisition_count_locked(__pyx_atomic_int *acquisition_count,

^

wordcloud/query_integral_image.c:14443:1: warning: unused function '__pyx_sub_acquisition_count_locked' [-Wunused-function]

__pyx_sub_acquisition_count_locked(__pyx_atomic_int *acquisition_count,

^

wordcloud/query_integral_image.c:15021:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]

static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,

^

wordcloud/query_integral_image.c:15035:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function]

static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,

^

wordcloud/query_integral_image.c:15995:27: warning: function '__Pyx_PyInt_As_char' is not needed and will not be emitted [-Wunneeded-internal-declaration]

static CYTHON_INLINE char __Pyx_PyInt_As_char(PyObject *x) {

^

wordcloud/query_integral_image.c:16090:27: warning: function '__Pyx_PyInt_As_long' is not needed and will not be emitted [-Wunneeded-internal-declaration]

static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {

^

11 warnings generated.

gcc -bundle -undefined dynamic_lookup -L/Users/idomyoung/anaconda/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.5-x86_64-2.7/wordcloud/query_integral_image.o -L/Users/idomyoung/anaconda/lib -o build/lib.macosx-10.5-x86_64-2.7/wordcloud/query_integral_image.so

ld: library not found for -lgcc_s.10.5

clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/Users/idomyoung/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-h0FZer/wordcloud/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-56Yo14-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-h0FZer/wordcloud

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值