You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bloodhound.apache.org by James Wood <la...@gmail.com> on 2014/07/10 15:04:14 UTC

Installation on Arch

Hi everyone! I hope I'm posting to the right place.

Arch Linux's `python` is Python 3, but BH requires Python 2. What's the 
best way to make BH use `python2`, preferably without changing the 
Python version for the whole OS?

Re: Installation on Arch

Posted by James Wood <la...@gmail.com>.
Sorry for taking so long to get round to this. Replacing `virtualenv` 
with `virtualenv2`, `pip` with `pip2` &c got everything working. Also, 
thanks to whoever added activate.fish.

On 10/07/14 14:23, Gary Martin wrote:
> On 10/07/14 14:04, James Wood wrote:
>> Hi everyone! I hope I'm posting to the right place.
>>
>> Arch Linux's `python` is Python 3, but BH requires Python 2. What's 
>> the best way to make BH use `python2`, preferably without changing 
>> the Python version for the whole OS?
>
> Hey, good to see you here again!
>
> https://wiki.archlinux.org/index.php/python gives a fair bit of 
> information. In particular, once installed, when you want to run a 
> script with python2 you will need to specify it because the default 
> for the python command will be python3 (which is sensible as that way 
> it shouldn't break Arch's scripts.)
>
> If you want to use a virtualenv, you may find that you can create it 
> with the -p python2 option but the wiki page above seems to suggest 
> installing python2-virtualenv will give you a virtualenv2 which 
> assumes python2 as the default.
>
> Admittedly, none of this has been checked by me yet as I don't run Arch!
>
> Cheers,
>     Gary


Re: Installation on Arch

Posted by Gary Martin <ga...@wandisco.com>.
On 10/07/14 14:04, James Wood wrote:
> Hi everyone! I hope I'm posting to the right place.
>
> Arch Linux's `python` is Python 3, but BH requires Python 2. What's 
> the best way to make BH use `python2`, preferably without changing the 
> Python version for the whole OS?

Hey, good to see you here again!

https://wiki.archlinux.org/index.php/python gives a fair bit of 
information. In particular, once installed, when you want to run a 
script with python2 you will need to specify it because the default for 
the python command will be python3 (which is sensible as that way it 
shouldn't break Arch's scripts.)

If you want to use a virtualenv, you may find that you can create it 
with the -p python2 option but the wiki page above seems to suggest 
installing python2-virtualenv will give you a virtualenv2 which assumes 
python2 as the default.

Admittedly, none of this has been checked by me yet as I don't run Arch!

Cheers,
     Gary