Level : WORDPRESS BOOK LINKEDIN PATENT Send Mail 동냥하기 hajunho.com

반응형

필요 패키지 설치

  1. PyCharm 터미널 열기:
    • 하단의 Terminal 탭을 열거나 Alt + F12를 눌러 터미널 실행.
  2. 패키지 설치: 아래 명령을 터미널에 입력하여 프로젝트에서 필요한 모든 패키지를 설치합니다.
  3. pip install torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu118 pip install matplotlib==3.7 tikzplotlib jpeg4py opencv-python lmdb pandas scipy
  4. SAMURAI 코드 설치:
  5. cd sam2 pip install -e . pip install -e ".[notebooks]"

체크포인트 다운로드

PyCharm의 터미널에서 체크포인트 다운로드 스크립트를 실행합니다.

cd checkpoints
./download_ckpts.sh
cd ..
  • Windows 사용자: Bash 스크립트를 실행할 수 없으면, Git Bash를 설치한 후 PyCharm에서 Git Bash를 터미널로 사용하세요.

데이터 준비

데이터를 아래 구조로 준비합니다. 다운로드한 데이터셋(예: LaSOT 데이터셋)을 data/LaSOT 폴더에 배치하세요.

data/LaSOT
├── airplane/
│   ├── airplane-1/
│   │   ├── full_occlusion.txt
│   │   ├── groundtruth.txt
│   │   ├── img/
│   │   ├── nlp.txt
│   │   └── out_of_view.txt
├── basketball/
├── bear/
├── bicycle/
...
├── training_set.txt
└── testing_set.txt

데이터 경로를 스크립트에서 올바르게 인식하도록, 필요하면 scripts/main_inference.py에서 데이터 경로를 수정합니다.


실행 구성 설정

  1. Run/Debug Configurations 설정:
    • PyCharm 상단 메뉴에서 Run > Edit Configurations 클릭.
    • + 버튼 클릭 > Python 선택.
    • 아래와 같이 구성:
      • Name: Main Inference
      • Script path: scripts/main_inference.py 경로 지정.
      • Working directory: 프로젝트 루트 디렉토리 지정.
      • Python Interpreter: 설정한 가상환경 선택.
  2. 실행: 상단의 실행 버튼 ▶️을 클릭하거나 Shift + F10을 눌러 실행합니다.

추론 결과 확인

main_inference.py에서 결과가 저장되는 디렉토리를 확인하고, 해당 결과 파일이나 로그를 열어 추론 결과를 확인하세요.


PS C:\GitHub\samurai> ls


    디렉터리: C:\GitHub\samurai


Mode                 LastWriteTime         Length Name                                                                                                   
----                 -------------         ------ ----                                                                                                   
d-----      2024-11-22   오전 9:36                .idea                                                                                                  
d-----      2024-11-22   오전 9:35                assets                                                                                                 
d-----      2024-11-22   오전 9:35                data
d-----      2024-11-22   오전 9:35                lib
d-----      2024-11-22   오전 9:35                sam2
d-----      2024-11-22   오전 9:35                scripts
-a----      2024-11-22   오전 9:35           2992 .gitignore
-a----      2024-11-22   오전 9:35          11558 LICENSE
-a----      2024-11-22   오전 9:35           5236 README.md


PS C:\GitHub\samurai> cd .\sam2\
PS C:\GitHub\samurai\sam2> ls


    디렉터리: C:\GitHub\samurai\sam2


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----      2024-11-22   오전 9:35                .github
d-----      2024-11-22   오전 9:35                assets
d-----      2024-11-22   오전 9:35                checkpoints
d-----      2024-11-22   오전 9:35                demo
d-----      2024-11-22   오전 9:35                notebooks
d-----      2024-11-22   오전 9:35                sam2
d-----      2024-11-22   오전 9:35                sav_dataset
d-----      2024-11-22   오전 9:35                tools
d-----      2024-11-22   오전 9:35                training
-a----      2024-11-22   오전 9:35           2629 .clang-format
-a----      2024-11-22   오전 9:35            114 .gitignore
-a----      2024-11-22   오전 9:35              2 .watchmanconfig
-a----      2024-11-22   오전 9:35           2133 backend.Dockerfile
-a----      2024-11-22   오전 9:35           3621 CODE_OF_CONDUCT.md
-a----      2024-11-22   오전 9:35           1456 CONTRIBUTING.md                                                                                        
-a----      2024-11-22   오전 9:35           1137 docker-compose.yaml
-a----      2024-11-22   오전 9:35          10772 INSTALL.md
-a----      2024-11-22   오전 9:35          11558 LICENSE
-a----      2024-11-22   오전 9:35           1595 LICENSE_cctorch
-a----      2024-11-22   오전 9:35            261 MANIFEST.in
-a----      2024-11-22   오전 9:35            126 pyproject.toml
-a----      2024-11-22   오전 9:35          15664 README.md
-a----      2024-11-22   오전 9:35           5225 setup.py


PS C:\GitHub\samurai\sam2> pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///C:/GitHub/samurai/sam2
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting torch>=2.3.1 (from SAM-2==1.0)
  Using cached torch-2.5.1-cp312-cp312-win_amd64.whl.metadata (28 kB)
Collecting torchvision>=0.18.1 (from SAM-2==1.0)
  Downloading torchvision-0.20.1-cp312-cp312-win_amd64.whl.metadata (6.2 kB)
Collecting numpy>=1.24.4 (from SAM-2==1.0)
  Using cached numpy-2.1.3-cp312-cp312-win_amd64.whl.metadata (60 kB)
Collecting tqdm>=4.66.1 (from SAM-2==1.0)
  Downloading tqdm-4.67.0-py3-none-any.whl.metadata (57 kB)
Collecting hydra-core>=1.3.2 (from SAM-2==1.0)
  Downloading hydra_core-1.3.2-py3-none-any.whl.metadata (5.5 kB)
Collecting iopath>=0.1.10 (from SAM-2==1.0)
  Downloading iopath-0.1.10.tar.gz (42 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pillow>=9.4.0 (from SAM-2==1.0)
  Downloading pillow-11.0.0-cp312-cp312-win_amd64.whl.metadata (9.3 kB)
Collecting omegaconf<2.4,>=2.2 (from hydra-core>=1.3.2->SAM-2==1.0)
  Downloading omegaconf-2.3.0-py3-none-any.whl.metadata (3.9 kB)
Collecting antlr4-python3-runtime==4.9.* (from hydra-core>=1.3.2->SAM-2==1.0)
  Downloading antlr4-python3-runtime-4.9.3.tar.gz (117 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting packaging (from hydra-core>=1.3.2->SAM-2==1.0)
  Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting typing_extensions (from iopath>=0.1.10->SAM-2==1.0)
  Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting portalocker (from iopath>=0.1.10->SAM-2==1.0)
  Downloading portalocker-3.0.0-py3-none-any.whl.metadata (8.5 kB)
Collecting filelock (from torch>=2.3.1->SAM-2==1.0)
  Using cached filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
Collecting networkx (from torch>=2.3.1->SAM-2==1.0)
  Using cached networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
Collecting jinja2 (from torch>=2.3.1->SAM-2==1.0)
  Using cached jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting fsspec (from torch>=2.3.1->SAM-2==1.0)
  Using cached fsspec-2024.10.0-py3-none-any.whl.metadata (11 kB)
Collecting setuptools (from torch>=2.3.1->SAM-2==1.0)
  Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
Collecting sympy==1.13.1 (from torch>=2.3.1->SAM-2==1.0)
  Using cached sympy-1.13.1-py3-none-any.whl.metadata (12 kB)
Collecting mpmath<1.4,>=1.1.0 (from sympy==1.13.1->torch>=2.3.1->SAM-2==1.0)
  Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
Collecting colorama (from tqdm>=4.66.1->SAM-2==1.0)
  Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting PyYAML>=5.1.0 (from omegaconf<2.4,>=2.2->hydra-core>=1.3.2->SAM-2==1.0)
  Downloading PyYAML-6.0.2-cp312-cp312-win_amd64.whl.metadata (2.1 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch>=2.3.1->SAM-2==1.0)
  Using cached MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl.metadata (4.1 kB)
Collecting pywin32>=226 (from portalocker->iopath>=0.1.10->SAM-2==1.0)
  Downloading pywin32-308-cp312-cp312-win_amd64.whl.metadata (8.3 kB)
Downloading hydra_core-1.3.2-py3-none-any.whl (154 kB)
Downloading numpy-2.1.3-cp312-cp312-win_amd64.whl (12.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.6/12.6 MB 18.3 MB/s eta 0:00:00
Downloading pillow-11.0.0-cp312-cp312-win_amd64.whl (2.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 18.4 MB/s eta 0:00:00
Using cached torch-2.5.1-cp312-cp312-win_amd64.whl (203.0 MB)
Using cached sympy-1.13.1-py3-none-any.whl (6.2 MB)
Downloading torchvision-0.20.1-cp312-cp312-win_amd64.whl (1.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 16.7 MB/s eta 0:00:00
Downloading tqdm-4.67.0-py3-none-any.whl (78 kB)
Downloading omegaconf-2.3.0-py3-none-any.whl (79 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Using cached filelock-3.16.1-py3-none-any.whl (16 kB)
Using cached fsspec-2024.10.0-py3-none-any.whl (179 kB)
Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Using cached networkx-3.4.2-py3-none-any.whl (1.7 MB)
Downloading packaging-24.2-py3-none-any.whl (65 kB)
Downloading portalocker-3.0.0-py3-none-any.whl (19 kB)
Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB)
Using cached MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl (15 kB)
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Downloading pywin32-308-cp312-cp312-win_amd64.whl (6.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.5/6.5 MB 23.6 MB/s eta 0:00:00
Downloading PyYAML-6.0.2-cp312-cp312-win_amd64.whl (156 kB)
Building wheels for collected packages: SAM-2, antlr4-python3-runtime, iopath
  Building editable for SAM-2 (pyproject.toml) ... done
  Created wheel for SAM-2: filename=SAM_2-1.0-0.editable-py3-none-any.whl size=13445 sha256=890c962c8ff4292bd4fe7825c9b0eaccace946f31030a279e336b4b05cc0850b
  Stored in directory: C:\Users\Administrator\AppData\Local\Temp\pip-ephem-wheel-cache-6uwnt26r\wheels\56\28\43\602d7d7c6aad27f0220fbd628083f1a4be06f154b65e9a4ae4
  Building wheel for antlr4-python3-runtime (pyproject.toml) ... done
  Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144578 sha256=698cbee2fdcccb5873d5185ebc3c82801df9875093c0459b6d519af1029d75b2
  Stored in directory: c:\users\administrator\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local\pip\cache\wheels\1f\be\48\13754633f1d08d1fbfc60d5e80ae1e5d7329500477685286cd
  Building wheel for iopath (pyproject.toml) ... done
  Created wheel for iopath: filename=iopath-0.1.10-py3-none-any.whl size=31537 sha256=63efab4c5e8a003594aaec712d3f335099920f60fc8e4d28347156dc281e4dba
  Stored in directory: c:\users\administrator\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local\pip\cache\wheels\7c\96\04\4f5f31ff812f684f69f40cb1634357812220aac58d4698048c
Successfully built SAM-2 antlr4-python3-runtime iopath
Installing collected packages: pywin32, mpmath, antlr4-python3-runtime, typing_extensions, sympy, setuptools, PyYAML, portalocker, pillow, packaging, numpy, networkx, MarkupSafe, fsspec, filelock, colorama, tqdm, omegaconf, jinja2, torch, iopath, hydra-core, torchvision, SAM-2
  WARNING: The script isympy.exe is installed in 'C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\Administrator\\AppData\\Local\\Packages\\PythonSoftw
areFoundation.Python.3.12_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python312\\site-packages\\pkg_resources\\tests\\data\\my-test-package_unpacked-egg\\my_test_package-1.0-py3.7.egg\\EGG-INFO\\dependency_links.txt'


[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip
PS C:\GitHub\samurai\sam2> 

pip install matplotlib==3.7 tikzplotlib jpeg4py opencv-python lmdb pandas scipy

PS C:\GitHub\samurai\sam2> pip install matplotlib==3.7 tikzplotlib jpeg4py opencv-python lmdb pandas scipy
Defaulting to user installation because normal site-packages is not writeable
Collecting matplotlib==3.7
  Downloading matplotlib-3.7.0.tar.gz (36.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.3/36.3 MB 15.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting tikzplotlib
  Downloading tikzplotlib-0.10.1-py3-none-any.whl.metadata (8.9 kB)
Collecting jpeg4py
  Downloading jpeg4py-0.1.4.tar.gz (12 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting opencv-python
  Downloading opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (20 kB)
Collecting lmdb
  Downloading lmdb-1.5.1-cp312-cp312-win_amd64.whl.metadata (1.1 kB)
Collecting pandas
  Downloading pandas-2.2.3-cp312-cp312-win_amd64.whl.metadata (19 kB)
Collecting scipy
  Downloading scipy-1.14.1-cp312-cp312-win_amd64.whl.metadata (60 kB)
Collecting contourpy>=1.0.1 (from matplotlib==3.7)
  Using cached contourpy-1.3.1-cp312-cp312-win_amd64.whl.metadata (5.4 kB)
Collecting cycler>=0.10 (from matplotlib==3.7)
  Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib==3.7)
  Using cached fonttools-4.55.0-cp312-cp312-win_amd64.whl.metadata (167 kB)
Collecting kiwisolver>=1.0.1 (from matplotlib==3.7)
  Using cached kiwisolver-1.4.7-cp312-cp312-win_amd64.whl.metadata (6.4 kB)
Collecting numpy>=1.20 (from matplotlib==3.7)
  Using cached numpy-2.1.3-cp312-cp312-win_amd64.whl.metadata (60 kB)
Collecting packaging>=20.0 (from matplotlib==3.7)
  Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting pillow>=6.2.0 (from matplotlib==3.7)
  Using cached pillow-11.0.0-cp312-cp312-win_amd64.whl.metadata (9.3 kB)
Collecting pyparsing>=2.3.1 (from matplotlib==3.7)
  Using cached pyparsing-3.2.0-py3-none-any.whl.metadata (5.0 kB)
Collecting python-dateutil>=2.7 (from matplotlib==3.7)
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting webcolors (from tikzplotlib)
  Downloading webcolors-24.11.1-py3-none-any.whl.metadata (2.2 kB)
Collecting cffi (from jpeg4py)
  Using cached cffi-1.17.1-cp312-cp312-win_amd64.whl.metadata (1.6 kB)
Collecting pytz>=2020.1 (from pandas)
  Downloading pytz-2024.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas)
  Downloading tzdata-2024.2-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib==3.7)
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting pycparser (from cffi->jpeg4py)
  Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Downloading tikzplotlib-0.10.1-py3-none-any.whl (54 kB)
Downloading opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl (38.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.8/38.8 MB 24.2 MB/s eta 0:00:00
Downloading lmdb-1.5.1-cp312-cp312-win_amd64.whl (100 kB)
Downloading pandas-2.2.3-cp312-cp312-win_amd64.whl (11.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.5/11.5 MB 26.6 MB/s eta 0:00:00
Downloading scipy-1.14.1-cp312-cp312-win_amd64.whl (44.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.5/44.5 MB 16.1 MB/s eta 0:00:00
Using cached contourpy-1.3.1-cp312-cp312-win_amd64.whl (220 kB)
Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Using cached fonttools-4.55.0-cp312-cp312-win_amd64.whl (2.2 MB)
Using cached kiwisolver-1.4.7-cp312-cp312-win_amd64.whl (55 kB)
Using cached numpy-2.1.3-cp312-cp312-win_amd64.whl (12.6 MB)
Using cached packaging-24.2-py3-none-any.whl (65 kB)
Using cached pillow-11.0.0-cp312-cp312-win_amd64.whl (2.6 MB)
Using cached pyparsing-3.2.0-py3-none-any.whl (106 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Downloading pytz-2024.2-py2.py3-none-any.whl (508 kB)
Downloading tzdata-2024.2-py2.py3-none-any.whl (346 kB)
Using cached cffi-1.17.1-cp312-cp312-win_amd64.whl (181 kB)
Downloading webcolors-24.11.1-py3-none-any.whl (14 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Building wheels for collected packages: matplotlib, jpeg4py
  Building wheel for matplotlib (pyproject.toml) ... done
  Created wheel for matplotlib: filename=matplotlib-3.7.0-cp312-cp312-win_amd64.whl size=7291183 sha256=e418c535eaf9733be09c9acb09a0ff65ce6c176e11b3242c21e64226b3d80025
  Stored in directory: c:\users\administrator\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local\pip\cache\wheels\b8\6d\92\e1f524b34cb5f0fda14c19ad64ac2a73095c763004432e45a1
  Building wheel for jpeg4py (pyproject.toml) ... done
  Created wheel for jpeg4py: filename=jpeg4py-0.1.4-py3-none-any.whl size=8431 sha256=71d8269d20b07fd3282f504401d469e0a417a2128dddc1533e3e0e4168a3ad8e    
  Stored in directory: c:\users\administrator\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local\pip\cache\wheels\ab\a3\c5\3fce1e4f84180fa8362da30c3db4c719be956d49a0da49bd47
Successfully built matplotlib jpeg4py
Installing collected packages: pytz, lmdb, webcolors, tzdata, six, pyparsing, pycparser, pillow, packaging, numpy, kiwisolver, fonttools, cycler, scipy, python-dateutil, opencv-python, contourpy, cffi, pandas, matplotlib, jpeg4py, tikzplotlib
  WARNING: The scripts f2py.exe and numpy-config.exe are installed in 'C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts fonttools.exe, pyftmerge.exe, pyftsubset.exe and ttx.exe are installed in 'C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed cffi-1.17.1 contourpy-1.3.1 cycler-0.12.1 fonttools-4.55.0 jpeg4py-0.1.4 kiwisolver-1.4.7 lmdb-1.5.1 matplotlib-3.7.0 numpy-2.1.3 o
pencv-python-4.10.0.84 packaging-24.2 pandas-2.2.3 pillow-11.0.0 pycparser-2.22 pyparsing-3.2.0 python-dateutil-2.9.0.post0 pytz-2024.2 scipy-1.14.1 six-1.16.0 tikzplotlib-0.10.1 tzdata-2024.2 webcolors-24.11.1

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip
PS C:\GitHub\samurai\sam2> C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.12_3.12.2032.0_x64__qbz5n2kfra8p0\lib\site-packages (24.2)
Collecting pip
  Downloading pip-24.3.1-py3-none-any.whl.metadata (3.7 kB)
Downloading pip-24.3.1-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 10.0 MB/s eta 0:00:00
Installing collected packages: pip
  WARNING: The scripts pip.exe, pip3.12.exe and pip3.exe are installed in 'C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-24.3.1
PS C:\GitHub\samurai\sam2> 

do not on command window

use powershell

wsl --install Ubuntu-24.04

ubuntu@DESKTOP-UEUMU5S:/mnt/c/GitHub/samurai$

반응형
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기