AI/dev env

pip window10

bitpoint 2023. 8. 9. 11:11

1. install

PS D:\hlearning> function pipinstall(){
        foreach($arg in $args){
           pip --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org install $arg
          }
}
PS D:\hlearning> pipinstall quantlib-python

 

2. freeze

pip freeze | Select-String -Pattern '[^@]*' | ForEach-Object { $_.Matches.Value } > package.txt

pip list --format=freeze > ./requirements.txt

 

3. download

pip --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org download -d D:\hlearning\downlib -r .\requirements2.txt

 

pip --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org download -d D:\hlearning\downlib xxxxxx

 

4.install requirement.txt

pip install -r requirements2.txt

 

5. install whl

python -m pip install xxxxxx.whl

 

python -m pip install --no-index --find-links="./" -r requirements.txt

 

'AI > dev env' 카테고리의 다른 글

github 코드를 colab에서 열기  (0) 2024.04.07
주피터 노트북을 py 파일로  (0) 2024.03.30