Skip to content Skip to sidebar Skip to footer

Cannot Pip Install Package In Virtualenv On Ec2

I'm seeing this weird issue on ec2. I'm trying to install lsm-db package inside my virtualenv, it says it's successfully installed but when trying to import the package or do pip l

Solution 1:

The problem seems to be with system file permissions. You can check the owner:group as well as rwx permissions for other users of the folder '/home/ec2-user/.cache/pip' from terminal using:

ls -lh /home/ec2-user/.cache/pip

In order to change the owner of the folder use command:

sudo chown -R ec2-user /home/ec2-user/.cache/pip

Another way to solve is to allow rwx permissions to all users by:

sudo chmod -R 777 /home/ec2-user/.cache/pip

Post a Comment for "Cannot Pip Install Package In Virtualenv On Ec2"