[Pytest] ERROR: file or directory not found
ยท
๐Ÿ Python
ERROR: file or directory not found pytest ์‹œ import package์˜ path๊ฐ€ sys.path์— ๋“ฑ๋ก๋˜์ง€ ์•Š์•„ module์„ ๋ถˆ๋Ÿฌ์˜ฌ ์ˆ˜ ์—†๋Š” ์ƒํƒœ์ด๋‹ค. 1) python์ด ์‹คํ–‰๊ณผ ๋™์‹œ์— env ์„ค์ • / mac (/.zshrc), Windows(/.bashrc) # ๊ฒฝ๋กœ ๋“ฑ๋ก export PYTHONPATH="/Users/code/~" # ๋‹ค์ˆ˜์˜ ๊ฒฝ๋กœ ๋“ฑ๋ก export PYTHONPATH="/Users/code/~:/Users/workspace/~" 2) python ํ™˜๊ฒฝ ๋ณ€์ˆ˜ PYTHONHOME ํ‘œ์ค€ Python ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์œ„์น˜๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” prefix/lib/pythonversion ๋ฐ exec_prefix/lib/pythonversio..
๋‹คํ–ˆ๋‹ค
'variable' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก