0
0

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.

direnvでpython環境構築

Posted at

direnv

インターンでフロントのReactサーバとやりとりするAPIサーバの環境構築にdirenvを利用することになった。
direnvを使うメリットはディレクトリごとに環境変数を使い分けられるというところ。
今回は対象ディレクトリにpython3.8にしたく、.envrcに以下を記述

layout python3

これでここのディレクトリでpython -vをするときちんと3.8が適応されていることを確認。

(参考)
https://qiita.com/kompiro/items/5fc46089247a56243a62

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?