Skip to content

MenghsuanLiu/Python

Repository files navigation

Python

Python Practice

開設虛擬環境

python -m venv <folder> Ex: python -m venv D:\Python_venv\310_venv

關閉虛擬環境

deactivate

升級虛擬環境內的 python

python -m venv --upgrade myEnv

安裝的套件寫到txt

pip freeze > <filename> Ex: pip freeze > D:\Python_venv\requirements.txt

安裝txt內的套件

pip install -r <filename> Ex: pip install -r requirements.txt

比較所有的套件是否為最新版

pip list --outdated

更新所有套件到最新版

pip freeze | %{$.split('==')[0]} | %{pip install --upgrade $}

About

Python Practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published