Skip to content

Latest commit

ย 

History

History
57 lines (35 loc) ยท 3.02 KB

Window_build.md

File metadata and controls

57 lines (35 loc) ยท 3.02 KB

Pytorch-hub-kr build in Window 10

Window 10 ํ™˜๊ฒฝ์—์„œ Pytorch-hub-kr ๋นŒ๋“œ๋ฅผ ์œ„ํ•œ ํ™˜๊ฒฝ ๊ตฌ์ถ•์„ ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์†Œ๊ฐœํ•ด ๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.

ํ™˜๊ฒฝ ์„ค์ •์„ ์ง„ํ–‰ํ•˜๋ฉด์„œ ์ฃผ๊ด€์ ์œผ๋กœ ๋„์›€์„ ๋ฐ›์•˜๋˜ ๋งํฌ๋“ค์„ ๊ณต์œ ํ•˜๋ฉด์„œ ๊ธ€์„ ์ž‘์„ฑํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Git bash์—์„œ Test๋ฅผ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค.

ํ™˜๊ฒฝ ์„ค์ • ์™„๋ฃŒ ํ›„, ./preview_hub_window.sh๋ฅผ command ์ฐฝ์— ์ž…๋ ฅํ•ด์ฃผ์‹œ๋ฉด ๋นŒ๋“œ ๋ฐ ๋ฏธ๋ฆฌ๋ณด๊ธฐ๋ฅผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ™˜๊ฒฝ ์„ค์ •

  • Ruby
  • node.js
  • yarn
  • Make command in Window 10

โ—๏ธ ํ™˜๊ฒฝ ์„ค์ • ์‹œ ๊ฐ๊ฐ์˜ ๋ฒ„์ „์„ ์•„๋ž˜ ๋ช…์‹œ๋œ ๋ฒ„์ „๊ณผ ๋™์ผํ•˜๊ฒŒ ๋งž์ถ”๋ฉด ์ˆ˜์›”ํ•˜๊ฒŒ ๋นŒ๋“œ๋ฅผ ์ง„ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค!

  1. Ruby ์„ค์น˜

RubyInstaller์—์„œ Ruby+Devkit 2.7.4-1 (x64)๋ฅผ ๋‹ค์šด ๋ฐ›์•„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.
(Ruby+Devkit 2.7.4-1 (x86)์˜ ๊ฒฝ์šฐ Test๋ฅผ ํ•ด๋ณด์ง€๋Š” ์•Š์€ ์ƒํƒœ์ž…๋‹ˆ๋‹ค. ๋‹ค๋งŒ ์ž์‹ ์˜ ์œˆ๋„์šฐ ์šด์˜์ฒด์ œ ๋น„ํŠธ์ˆ˜์— ๋งž์ถ”์–ด ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.)
ruby -v๋กœ ๋ฒ„์ „ ํ™•์ธ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. 2.7.4 ๋ฒ„์ „์„ ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

  1. bundler ์„ค์น˜

git bash command ์ฐฝ์— gem install bundler -v 2.3.13๋กœ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ bundler๋ฅผ ์„ค์น˜ํ•ด์ฃผ์„ธ์š”.
๋ฒ„์ „์€ 2.3.13์œผ๋กœ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค.

  1. node.js ์„ค์น˜

node.js ์„ค์น˜๋Š” ์•„๋ž˜ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ฒ„์ „์€ 16.13.2์ž…๋‹ˆ๋‹ค.
nvm ์„ค์น˜์‹œ ๊ด€๋ฆฌ์ž์˜ ๊ถŒํ•œ์œผ๋กœ git bash๋ฅผ ์‹คํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

  1. yarn ์„ค์น˜

git bash command ์ฐฝ์— npm install --global yarn๋กœ yarn๋ฅผ ์„ค์น˜ํ•ด์ฃผ์„ธ์š”. ๋ฒ„์ „์€ 1.22.19์ž…๋‹ˆ๋‹ค.

  1. Window 10์—์„œ make ๋ช…๋ น์–ด ์‚ฌ์šฉ

ezwinports๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์•„๋ž˜์˜ ์ฐธ๊ณ ์ž๋ฃŒ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•ด์ฃผ์„ธ์š”.

๋งŒ์•ฝ ezwinports๋ฅผ ํ†ตํ•ด make๋ฅผ ์„ค์น˜ํ–ˆ์Œ์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  make ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๋‹ค๋ฉด, chocolatey ๋ฅผ ์„ค์น˜ํ•˜์—ฌ make ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.