0

Why does 'pip install askbot' uninstall Django?
 

I have our deployed version of AskBot running on a CentOS 6 system. It is running 0.7.49.

I noticed that pip has a newer version. I am installing on another server that also has Django running, where I can play with the newer AskBot. This second server is running CentOS 7 and Django 1.6.10. (Note that I used yum to install everything on the CentOS 7 server -- no pip.)

To my horror, the pip install askbot command removed Django from the system without even asking me. This server was running other Django applications!

Is there some way I could have avoided this? Should I have known that this was a risk?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
dccarson's avatar
71
dccarson
asked 10 years ago

Comments

see more comments

1 Answer

0

The solution is to install using "virtualenv". This way requirements of Askbot can be satisfied without interfering with the system-wide python installation.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 10 years ago
link

Comments

OK, I will try that. But is there some reason the askbot installation could not have used the Django I had installed, which is newer than what askbot requires?

dccarson's avatar dccarson (10 years ago)

Askbot 0.7.51 supports 1.5 the latest

Evgeny's avatar Evgeny (10 years ago)

CentOS 7 shows 1.6.10: `rpm -q python-django` yields `python-django-1.6.10-1.el7.noarch`

dccarson's avatar dccarson (10 years ago)
see more comments