Python備忘録

venv

python3 -m venv venv
source venv/bin/activate

Pipenv

install

pip install pipenv

環境構築

pythonのバージョンを確認

python --version

環境構築をしたいディレクトリに移動し、
確認したバージョンを指定

pipenv --python [VERSION]

Usage

  • 起動(構築したディレクトリ内で)
pipenv shell
  • 終了
exit
  • 削除
pipenv --rm

PyInstaller

install

pip install pyinstaller

Usage

pyinstaller --onefile --clean test.py

参考