Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- wsl2 복구
- 실시간로깅
- docker
- Python.h: No such file or directory
- 공유 라이브러리는 왜 항상 같은 순서로 맵핑 될까?
- 임베디드 시스템 해킹
- GDB
- pip 에러 해결
- python3.11 pip
- 리커버릿
- add-apt-repository 에러
- Windows 부팅 오류
- user or team does not exist.
- python3.11 설치
- GEF
- DYNAMIC Section
- OpenAI 개발
- VSCode C++ 표준 버전 수정
- pwntools
- tool
- vhdx 파일 복구
- z3 signed 이슈
- 지훈현서
- pwn
- ppa:deadsnakes/ppa
- c++
- Seccomp bypass
- Recoverit
- 개발
- std::cerr
Archives
- Today
- Total
OZ1NG의 뽀나블(Pwnable)
[Tips]python3.x pip 모듈 설치 에러 해결 : Python.h: No such file or directory 본문
Tips
[Tips]python3.x pip 모듈 설치 에러 해결 : Python.h: No such file or directory
OZ1NG 2022. 12. 14. 04:15[원인]
pip을 통해 모듈을 다운받은 후 빌드를 할 때 Python.h 헤더 파일이 없어 발생하는 문제이다.
[해결]
만약 python2.x 또는 python3.x 버전이 하나씩만 설치되어 있는 경우 아래의 명령어로 간단하게 해결할 수 있다.
[python2의 경우]
sudo apt install python-dev
[python3의 경우]
sudo apt install python3-dev
하지만 이렇게 설치하는 경우 python3.x 버전을 여러개 사용하게 되면 다른 python 버전에서는 적용이 되지 않아 같은 에러가 발생한다는 문제점이 남아있다.
왜냐면 위와 같이 이미 설치된 python 버전에 종속되기 떄문이다.
따라서 이런 경우 버전에 맞춰 따로 설치를 해줌으로써 해결을 할 수 있다.
[python2]
sudo apt install python2.x-dev
[python3]
sudo apt insatll python3.x-dev
'Tips' 카테고리의 다른 글
[Tips] z3 unsigned 미지수 사용 (0) | 2023.01.01 |
---|---|
[Tips] C# Decompiler: dotPeek (0) | 2022.12.28 |
[Tips] python XML 파싱 (0) | 2022.12.12 |
[Tips][python-requests] get/post -> 403 forbidden 해결 (0) | 2022.12.12 |
[Tips] add-apt-repository Error: user or team does not exist. 오류 해결 (2) | 2022.12.09 |
Comments