LoginSignup
0
1

More than 1 year has passed since last update.

【Python】仮想環境を構築

Last updated at Posted at 2021-10-05

Anacondaを使わずに、仮想環境を立ち上げましょう

実行したOS: MacOS (Macbook Air)
Pythonバージョン: 3.8

1.まずターミナルを開いて、pipでvirtualenvパッケージをダウンロードします

$ pip install virtualenv

2. 好きな名前を付けます (my_env以外でも何でも)

$ virtualenv my_env

3. 仮想環境を起動します

$ source my_env/bin/activate

4. この仮想環境の下で、必要なパッケージ、モジュールなどをダウンロードしましょう

$ pip install torch

以上です。

0
1
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
0
1