python - Pip doesn't install packages to activated virtualenv, ignores requirements.txt -
i attempting setup development environment on new dev machine @ home. have installed ubuntu , attempting clone remote repo our web-server , install dependencies can begin work.
so far have manually installed virtualenv , virtualenvwrapper pypi , edited bash.rc appropriately source virtualenvs when start terminal. cloned repo ~/projects/project-name/websitename.com. used virtualenvwrapper mkvirtualenv env-name ~/projects/project-name/websitename.com. reflects file-structure/setup of web-server cloning from. far good. 
i logged dev server , activate virtualenv there , use pip freeze -l > req.txt render dependencies list , scp local machine. activate virtualenv on local machine, navigate ~/projects/project-name/websitename.com , execute pip install -r path-to-req.txt , runs through of dependencies if nothing wrong. however, when attempt manage.py syncdb error not finding core django packages. hell? figure somehow django failed install, run pip install django==1.5.1 , completes successfully. got setup site again , error no module named django_extensions. okay, hell it, installed of these packages pip?! 
so pip freeze -l > test.txt , cat test.txt, list? django==1.5.1, 1 package manually installed. why isn't pip installing dependencies specified list virtualenv? messing here?
-edit-------------
which pip gives me path pip in virtualenv
i have 1 virtualenv , activated
my usual workflow
pip freeze > somefile.txt and install with
pip install -r somefile.txt so i'm should work fine. unfortunately can't tell besides make sure check that
- you in virtualenv think in. make sure run - workon yourvirtualenvname- to activate in case matters. 
- make sure check pip within virtualenv. - which pip- gives me - /path/to/home/.virtualenvs/myvirtenv/bin/pip
sorry can't give more concrete answer. have semi-regularly , i've never had problem skipping dependencies. best of luck!
Comments
Post a Comment