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

EC2のvenvでpip installしたらPermission deniedと言われた件

Posted at

はじめに

ec2でインスタンス立ち上げてpip install numpyしたら

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/ubuntu/keiba/env/lib/python3.12/site-packages/numpy-2.1.1.dist-info'
Check the permissions.

と怒られた。
多分忘れた頃に遭遇するので、対処法を記事に残す。

結論

エラーは正しい。
権限が足りないのはvenv内のpipやpythonなので、そいつらに触れるようにしてやればいい。

sudo chmod -R 777 venv

以上。

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