에러
Error: pg_config executable not found
python setup egg_info did not run successfully
subprocess exited with error
python setup.py egg_info did not run successfully. exit code:
윈도우에서 pip install psycopg2로 설치한 python 모듈이 정상 작동했으나
리눅스에선 되지 않았다.
해결 방법
pip install psycopg2-binary
psycopg2-binary 설치하여 해결했다.
참고
https://stackoverflow.com/questions/5420789/how-to-install-psycopg2-with-pip-on-python
How to install psycopg2 with "pip" on Python?
I'm using virtualenv and I need to install "psycopg2". I have done the following: pip install http://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.tar.gz#md5=24f4368e2cfdc1a2b03282ddda8...
stackoverflow.com
공식 홈페이지에선
패키지를 설치하여 컴파일러나 외부 라이브러리가 필요하지 않은 독립 실행형 패키지를 얻을 수도 있습니다 .
바이너리 패키지는 개발 및 테스트를 위한 실용적인 선택이지만 프로덕션에서는 소스에서 빌드된 패키지를 사용하는 것이 좋습니다.
이렇게 설명하고 있으니 고려해야겠다.
'Python' 카테고리의 다른 글
[python] 동적으로 import 모듈 가져오기 (0) | 2024.01.13 |
---|---|
[python] pyinstaller No such file or directory 에러 (상대 경로 지정) (0) | 2024.01.13 |
[크롤링] 디시인사이드 갤러리 공지사항 태그 제거 크롤링 (0) | 2023.07.26 |
[Error] bad operand type for unary -: 'CursorResult' (0) | 2023.07.26 |
[conda] chromedriver devtoolsactiveport file doesn't exist (0) | 2023.07.24 |