I have a problem because I have some python installions inside a virtualenv and some oustide.
Take for example Django-crispy-forms. Its current version is 1.5.1, but I want my old site (outside the virtualenv) to keep 1.4.0 and my new site (inside the virtualenv) should have the latest version.
I thought that source bin/activate
and then pip install django-crispy-forms
would help, but it complains that it is already there (outside the virtualenv). This I can understand, and it takes the ones outside the virtualenv.
But now I want to upgrade inside my virtualenv, using pip install --upgrade django-crispy-forms
.
Collecting django-crispy-forms
Downloading django-crispy-forms-1.5.2.tar.gz (114kB)
100% |████████████████████████████████| 114kB 3.9MB/s
Building wheels for collected packages: django-crispy-forms
Running setup.py bdist_wheel for django-crispy-forms
Stored in directory: /home/gabn88/.cache/pip/wheels/35/c8/45/4c3e856aed73cfdf2ff25e600d95bdd20eba71b3d3cca38cb2
Successfully built django-crispy-forms
Installing collected packages: django-crispy-forms
Found existing installation: django-crispy-forms 1.4.0
Not uninstalling django-crispy-forms at /lib/python3.4, outside environment /webapps/production_v3
Successfully installed django-crispy-forms-1.4.0
As you can see it did not update.
Extra info: The packages it uses are installed outside the virtualenv by pip install --user...
. Maybe that helps finding a solution, thank you!