LoginSignup
6
8

More than 1 year has passed since last update.

pyenvで制作した仮想環境でpip --userがエラーを返す時の対処法

Last updated at Posted at 2020-04-17

問題

pyenvを使ってpython3.8.2の仮想環境を作成し、pipでパッケージをインストールしようとした際、

ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

のエラーが出たのでその対象法。
(Mac)

対象法

仮想環境のあるディレクトリに行き

/usr/local/python_env/py3env

pip.confというファイルを作成。

touch pip.conf

中身に

[global]
user = false

と記載する。

6
8
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
6
8