Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install successfull, but packages not working / not in pip list #5681

Closed
opahopa opened this issue Jul 31, 2018 · 7 comments
Closed

pip install successfull, but packages not working / not in pip list #5681

opahopa opened this issue Jul 31, 2018 · 7 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@opahopa
Copy link

opahopa commented Jul 31, 2018

Environment

  • pip version: 18.0
  • Python version: 3.6.5
  • OS: Amazon Linux AMI release 2018.03 , Ubuntu 18.04

with both OS virtualenv (python 3.6.5) used.

Description
apscheduler, pyinstaller, psycopg2, msgpack, zope.interface, twisted, hiredis
packages shown as installed after executing pip install -r requirements.txt, or python -m pip install -r requirements.txt, but are not installed (import errors if trying to use.) ls environment/lib/python3.6/dist-packages - shows no any of those packages installed either.

However i'm able to install the packages mentioned above with easy_install , but that results in future errors with pyinstaller => solution with pip is highly appreciated.

Expected behavior
packages apscheduler, pyinstaller, psycopg2, msgpack, zope.interface, twisted, hiredis are properly installed

How to Reproduce
pip install -r requirements.txt

Django==2.0.6
django-extensions==2.0.7
channels==2.1.1
channels-redis==2.2.1
djangorestframework==3.8.2
djangorestframework-jwt==1.11.0
django-cors-headers==2.3.0
gunicorn==19.7.1
jsonpickle==0.9.6
six==1.11.0
websocket-client==0.48.0
apscheduler==3.5.1
pyinstaller==3.3.1
configparser==3.5.0
psycopg2==2.7.5
msgpack==0.5.6
twisted==18.7.0

=> pip list to see that mentioned packages are not installed.

Output

(environment) [ec2-user@ip-********* ~]$ python -m pip install -r requirements.txt
Requirement already satisfied: Django==2.0.6 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 2)) (2.0.6)
Requirement already satisfied: django-extensions==2.0.7 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 3)) (2.0.7)
Requirement already satisfied: channels==2.1.1 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 4)) (2.1.1)
Requirement already satisfied: channels-redis==2.2.1 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 5)) (2.2.1)
Requirement already satisfied: djangorestframework==3.8.2 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 6)) (3.8.2)
Requirement already satisfied: djangorestframework-jwt==1.11.0 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 7)) (1.11.0)
Requirement already satisfied: django-cors-headers==2.3.0 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 8)) (2.3.0)
Requirement already satisfied: gunicorn==19.7.1 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 12)) (19.7.1)
Requirement already satisfied: jsonpickle==0.9.6 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 13)) (0.9.6)
Requirement already satisfied: six==1.11.0 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 15)) (1.11.0)
Requirement already satisfied: websocket-client==0.48.0 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 16)) (0.48.0)
Collecting apscheduler==3.5.1 (from -r requirements/common.txt (line 17))
  Using cached https://files.pythonhosted.org/packages/60/08/fbd377c75a4531d8ef55a65fe3fc316a1cada9b552e290f10705461807fb/APScheduler-3.5.1-py2.py3-none-any.whl
Collecting pyinstaller==3.3.1 (from -r requirements/common.txt (line 18))
Requirement already satisfied: configparser==3.5.0 in ./environment/lib/python3.6/dist-packages (from -r requirements/common.txt (line 19)) (3.5.0)
Collecting psycopg2==2.7.5 (from -r requirements/common.txt (line 20))
  Using cached https://files.pythonhosted.org/packages/5e/d0/9e2b3ed43001ebed45caf56d5bb9d44ed3ebd68e12b87845bfa7bcd46250/psycopg2-2.7.5-cp36-cp36m-manylinux1_x86_64.whl
Collecting msgpack==0.5.6 (from -r requirements/common.txt (line 21))
  Using cached https://files.pythonhosted.org/packages/22/4e/dcf124fd97e5f5611123d6ad9f40ffd6eb979d1efdc1049e28a795672fcd/msgpack-0.5.6-cp36-cp36m-manylinux1_x86_64.whl
Collecting twisted==18.7.0 (from -r requirements/common.txt (line 22))
Requirement already satisfied: pytz in ./environment/lib/python3.6/dist-packages (from Django==2.0.6->-r requirements/common.txt (line 2)) (2018.5)
Requirement already satisfied: asgiref~=2.3 in ./environment/lib/python3.6/dist-packages (from channels==2.1.1->-r requirements/common.txt (line 4)) (2.3.2)
Requirement already satisfied: daphne~=2.1 in ./environment/lib/python3.6/dist-packages (from channels==2.1.1->-r requirements/common.txt (line 4)) (2.2.1)
Requirement already satisfied: aioredis~=1.0 in ./environment/lib/python3.6/dist-packages (from channels-redis==2.2.1->-r requirements/common.txt (line 5)) (1.1.0)
Requirement already satisfied: PyJWT<2.0.0,>=1.5.2 in ./environment/lib/python3.6/dist-packages (from djangorestframework-jwt==1.11.0->-r requirements/common.txt (line 7)) (1.6.4)
Requirement already satisfied: tzlocal>=1.2 in ./environment/lib/python3.6/dist-packages (from apscheduler==3.5.1->-r requirements/common.txt (line 17)) (1.5.1)
Requirement already satisfied: setuptools>=0.7 in ./environment/lib/python3.6/dist-packages (from apscheduler==3.5.1->-r requirements/common.txt (line 17)) (40.0.0)
Requirement already satisfied: macholib>=1.8 in ./environment/lib/python3.6/dist-packages (from pyinstaller==3.3.1->-r requirements/common.txt (line 18)) (1.10)
Requirement already satisfied: pefile>=2017.8.1 in ./environment/lib/python3.6/dist-packages (from pyinstaller==3.3.1->-r requirements/common.txt (line 18)) (2017.11.5)
Requirement already satisfied: attrs>=17.4.0 in ./environment/lib/python3.6/dist-packages (from twisted==18.7.0->-r requirements/common.txt (line 22)) (18.1.0)
Requirement already satisfied: PyHamcrest>=1.9.0 in ./environment/lib/python3.6/dist-packages (from twisted==18.7.0->-r requirements/common.txt (line 22)) (1.9.0)
Requirement already satisfied: incremental>=16.10.1 in ./environment/lib/python3.6/dist-packages (from twisted==18.7.0->-r requirements/common.txt (line 22)) (17.5.0)
Collecting zope.interface>=4.4.2 (from twisted==18.7.0->-r requirements/common.txt (line 22))
Requirement already satisfied: constantly>=15.1 in ./environment/lib/python3.6/dist-packages (from twisted==18.7.0->-r requirements/common.txt (line 22)) (15.1.0)
Requirement already satisfied: hyperlink>=17.1.1 in ./environment/lib/python3.6/dist-packages (from twisted==18.7.0->-r requirements/common.txt (line 22)) (18.0.0)
Requirement already satisfied: Automat>=0.3.0 in ./environment/lib/python3.6/dist-packages (from twisted==18.7.0->-r requirements/common.txt (line 22)) (0.7.0)
Requirement already satisfied: async-timeout<4.0,>=2.0 in ./environment/lib/python3.6/dist-packages (from asgiref~=2.3->channels==2.1.1->-r requirements/common.txt (line 4)) (3.0.0)
Requirement already satisfied: autobahn>=0.18 in ./environment/lib/python3.6/dist-packages (from daphne~=2.1->channels==2.1.1->-r requirements/common.txt (line 4)) (18.7.1)
Collecting hiredis (from aioredis~=1.0->channels-redis==2.2.1->-r requirements/common.txt (line 5))
Requirement already satisfied: altgraph>=0.15 in ./environment/lib/python3.6/dist-packages (from macholib>=1.8->pyinstaller==3.3.1->-r requirements/common.txt (line 18)) (0.16.1)
Requirement already satisfied: future in ./environment/lib/python3.6/dist-packages (from pefile>=2017.8.1->pyinstaller==3.3.1->-r requirements/common.txt (line 18)) (0.16.0)
Requirement already satisfied: idna>=2.5 in ./environment/lib/python3.6/dist-packages (from hyperlink>=17.1.1->twisted==18.7.0->-r requirements/common.txt (line 22)) (2.7)
Requirement already satisfied: txaio>=18.7.1 in ./environment/lib/python3.6/dist-packages (from autobahn>=0.18->daphne~=2.1->channels==2.1.1->-r requirements/common.txt (line 4)) (18.7.1)
Installing collected packages: apscheduler, pyinstaller, psycopg2, msgpack, zope.interface, twisted, hiredis
Successfully installed apscheduler-3.5.1 hiredis-0.2.0 msgpack-0.5.6 psycopg2-2.7.5 pyinstaller-3.3.1 twisted-18.7.0 zope.interface-4.5.0


(environment) [ec2-user@ip-****** ~]$ python -m pip list
Package                 Version   
----------------------- ----------
aioredis                1.1.0     
altgraph                0.16.1    
asgiref                 2.3.2     
async-timeout           3.0.0     
attrs                   18.1.0    
autobahn                18.7.1    
Automat                 0.7.0     
channels                2.1.1     
channels-redis          2.2.1     
configparser            3.5.0     
constantly              15.1.0    
daphne                  2.2.1     
Django                  2.0.6     
django-cors-headers     2.3.0     
django-extensions       2.0.7     
djangorestframework     3.8.2     
djangorestframework-jwt 1.11.0    
future                  0.16.0    
gunicorn                19.7.1    
hyperlink               18.0.0    
idna                    2.7       
incremental             17.5.0    
jsonpickle              0.9.6     
macholib                1.10      
meld3                   1.0.2     
pefile                  2017.11.5 
pip                     18.0      
PyHamcrest              1.9.0     
PyJWT                   1.6.4     
pytz                    2018.5    
setuptools              40.0.0    
six                     1.11.0    
supervisor              4.0.0.dev0
txaio                   18.7.1    
tzlocal                 1.5.1     
websocket-client        0.48.0    
wheel                   0.31.1    
(environment) [ec2-user@ip-********~]$ pyinstaller
Traceback (most recent call last):
  File "/home/ec2-user/environment/bin/pyinstaller", line 7, in <module>
    from PyInstaller.__main__ import run
ModuleNotFoundError: No module named 'PyInstaller'

@opahopa opahopa changed the title pip install successfull, but packages not not working / not in pip list pip install successfull, but packages not working / not in pip list Jul 31, 2018
@opahopa
Copy link
Author

opahopa commented Jul 31, 2018

founds out that the issue is as described here #4464

@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label Aug 20, 2018
@xavfernandez
Copy link
Member

Closing, for the same reason as #4464

@billux24
Copy link

billux24 commented Nov 6, 2018

hello
i cant upgrade pip from cmd help me
my pip is 10 and i work with python 3.7
windows 7

@ghost
Copy link

ghost commented Nov 7, 2018

try running
pip install --upgrade pip

@billux24
Copy link

billux24 commented Nov 7, 2018

I try it but command line he dont know pip i

@Piyush-k-singh
Copy link

try this it will run

python -m pip install --upgrade pip

@lock
Copy link

lock bot commented May 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 29, 2019
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label May 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

5 participants