Arch Linux에서 setup.py를 빌드할 수 없습니다.

Arch Linux에서 setup.py를 빌드할 수 없습니다.

현재 Arch Linux가 설치되어 있으며 Spyder3용 wxPython 모듈을 설치하고 싶습니다. pip를 사용하여 설치하는 데 문제가 있었습니다. 그래서 wxpython tarball을 다운로드했습니다. 내가 따라온 단계는 다음과 같습니다.

cd Downloads sudo tar -xvzf wxPython-4.0.6.tar.gz cd wxpython-4.0.6

그런 다음 setup.py 파일을 빌드하려고 하는데 다음 오류가 발생합니다.

python setup.py build running build WARNING: Building this way assumes that all generated files have been generated already. If that is not the case then use build.py directly to generate the source and perform the build stage. You can use --skip-build with the bdist_* or install commands to avoid this message and the wxWidgets and Phoenix build steps in the future.

"/usr/bin/python" -u build.py build Traceback (most recent call last): File "build.py", line 30, in <module> import pathlib2 ModuleNotFoundError: No module named 'pathlib2' Command '"/usr/bin/python" -u build.py build' failed with exit code 1.

나도 그것을 시도했지만 python setup.py install같은 오류가 발생했습니다.

누구든지 문제를 해결하는 방법을 알고 있나요? 모든 도움을 환영합니다.

답변1

pip, setuptools 및 휠이 최신인지 확인하세요.

사전 빌드된 바이너리 아카이브에서 설치하려면 pip만으로도 충분하지만, 최신 setuptools 사본과 휠 프로젝트를 사용하면 소스 아카이브에서도 설치할 수 있습니다.

python -m pip install --upgrade pip setuptools wheel

"ModuleNotFoundError: 'pathlib2'라는 모듈이 없습니다."

이는 필수 모듈이 누락되었음을 의미하므로 해당 모듈을 설치하고 시도해 보세요.

이 시도

sudo pip install pathlib2

또는

sudo pip3 install pathlib2

관련 정보