14
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

windowsのpowershellでvenv環境

Last updated at Posted at 2020-02-07

powershellでvenv環境を構築する

まず管理者権限でpowershellを起動し以下のコマンドを実行することでスクリプトファイルが実行できるようにする

PS > PowerShell Set-ExecutionPolicy RemoteSigned

次に対象のローカルファイルでvenvファイルの作成

PS > python -m venv venv

次に仮想環境の起動

PS > venv\Scripts\activate.ps1

出るときは

PS > deactivate
14
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?