Skip to content

Packages installed by pip in lib64 are not recognized by pip #4464

@paulcyr

Description

@paulcyr
  • Pip version: 9.0.1
  • Python version: 3.5
  • Operating system: Amazon Linux AMI release 2017.03

Description:

I am working in a virtual environment created with virtualenv. There are a few packages that I am trying to install, however two of them, psycopg2 and pillow, are not working correctly.

When I run pip install <package>, it works as expected. However, neither of the two modules are shown using pip show <package> or pip list. pip install <package> can be run again with the same result.

It turns out that the two packages were being installed in env/lib64/python3.5/dist-packages. All the other packages were being installed in env/lib/python3.5/dist-packages

For some reason, pip is not seeing the packages it has installed in the lib64 folder. Packages installed in the lib folder are recognized correctly.

What I've run:

(env)[ec2-user@ws4 test]$ pip install psycopg2
Collecting psycopg2
  Using cached psycopg2-2.7.1-cp35-cp35m-manylinux1_x86_64.whl
Installing collected packages: psycopg2
Successfully installed psycopg2-2.7.1
(env)[ec2-user@ws4 test]$ pip show psycopg2
(env)[ec2-user@ws4 test]$
(env)[ec2-user@ws4 test]$ pip install pillow
Collecting pillow
  Using cached Pillow-4.1.1-cp35-cp35m-manylinux1_x86_64.whl
Requirement already satisfied: olefile in /var/www/domains/ndp/associations/env/lib/python3.5/dist-packages (from pillow)
Installing collected packages: pillow
Successfully installed pillow-4.1.1
(env)[ec2-user@ws4 test]$ pip show pillow
(env)[ec2-user@ws4 test]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions