venv環境に入ってpythonファイルを実行するシェルスクリプトを作成する2019/9/6 / 1 min readView more blogs with the tag python, View more blogs with the tag ubuntuTable of Contents#はじめに#方法はじめに venv環境でpythonファイルを実行するシェルスクリプトを作成する方法です。 方法 #! /bin/bash # 仮想環境フォルダまで移動cd /hoge/fuga # venv環境のactivate. 仮想環境名/bin/activate # 実行ファイルまでのパスcd /hoge/fuga # pythonの実行python hoge.py # 仮想環境から抜けるdeactivate