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?

本番環境を仮想環境でも使えるようにする方法

Posted at

仮想環境だとどうしてもインストールできなかったので本番環境にapt-getでインストールした後仮想環境で本番環境を使えるようにしました。

まずはapt-getでインストール

sudo apt-get update
sudo apt-get install python3-numpy python3-pandas

その後、仮想環境のディレクトリ内のpyvenv.cfgを編集します。

nano myenv/pyvenv.cfg

デフォルトではこの値がfalseになってるので、ここをtrueにしましょう。

include-system-site-packages = true

これ知らなかったんですけど、かなり便利だと思います。また一つ勉強になりました。

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?