LoginSignup
0
0

More than 5 years have passed since last update.

pythonで環境を作る時にメモ

Last updated at Posted at 2015-10-24

仮想環境を作る場合

python2系

$mkdir -p $(作業ディレクトリ名)
$cd !$
$virtualenv venv
$source venv/bin/activate

python3系

mkdir -p $(作業ディレクトリ名)
cd !$
python3 -m venv venv
source venv/bin/activate

参考

HomebrewのPython2とPython3でvirtualenv環境を作成する手順メモ

pyenvメモ

環境を作る

$pyenv virtualenv {Python Version} {仮想環境名}
0
0
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
0