adamerose / adamerose/PandasGUI

"error: command 'gcc' failed with exit status 1" when installing on Mac

Đang mở
#183 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
3.3k
Fork
239
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi, thank you very much for sharing your great work.

I tried to install PandasGUI by ```pip install pandasgui ``` on a Mac laptop. However, I get the error:

`error: command 'gcc' failed with exit status 1
`

Error message is very long and I copy the last part of it (full error message is uploaded at the bottom of this page):

Screen Shot 2022-01-11 at 9 22 29

```
cc1obj: all warnings being treated as errors
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/anaconda3/envs/molmap/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/5_/xyk2cqhn5yj2yx4nw54_7x240000gn/T/pip-install-14c49o33/pyobjc-framework-cocoa_441002f548da42f59c5729bf78912747/setup.py'"'"'; __file__='"'"'/private/var/folders/5_/xyk2cqhn5yj2yx4nw54_7x240000gn/T/pip-install-14c49o33/pyobjc-framework-cocoa_441002f548da42f59c5729bf78912747/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/5_/xyk2cqhn5yj2yx4nw54_7x240000gn/T/pip-record-ed52dj6t/install-record.txt --single-version-externally-managed --compile --install-headers /opt/anaconda3/envs/molmap/include/python3.6m/pyobjc-framework-Cocoa Check the logs for full command output.
```

It seems that installer cannot build some of the packages such as ```pyobjc-framework-cocoa```.

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

**Environment:**

- OS: macOS Monterey , version 12.1
- Python: 3.6.13

I have gcc installed and when I run ```g++ --version``` in Terminal, I get:

Screen Shot 2022-01-11 at 9 23 06

If you could help me to solve this issue, I really appreciate it.
Is it because of the python version or default compiler?

The error message says that there is a log file. However, I am not able to find it. Where can I find the log file?

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

Full error message:
[error_message.txt](https://github.com/adamerose/PandasGUI/files/7842945/error_message.txt)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.