๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

TIL/Linux

[Ubuntu] Python.h: No such file or directory

  • pip install karateclub umap-learn ์„ ํ•˜๋˜ ์ค‘ ์—๋Ÿฌ๊ฐ€ ๋‚ฌ๋‹ค.

apt install python3.8-dev
  • ๊ฐ€์žฅ ์ฒ˜์Œ ์—๋Ÿฌ๋Š” Python.h๊ฐ€ ์—†๋‹ค๋Š” ๊ฒƒ
  • ๋ฒ„์ „์— ๋งž๊ฒŒ python-dev๋ฅผ ์„ค์น˜ํ•˜์—ฌ Python.h ํŒŒ์ผ์„ ์ƒ์„ฑํ•ด์ค€๋‹ค.

gcc, g++ ์„ค์น˜, aws ์„œ๋ฒ„ ์žฌ๋ถ€ํŒ… ๋‹ค ํ•ด๋ดค๋Š”๋ฐ, ์—ญ์‹œ ์ด๊ฒƒ์ด ๋ฌธ์ œ์˜€๋‹ค ใ…  

์˜ค๋Š˜์˜ ๊ตํ›ˆ: ์ฒซ ๋ฒˆ์งธ ์—๋Ÿฌ๋ถ€ํ„ฐ ๋ณด์ž....^^

https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory