Open GoogleCodeExporter opened 8 years ago
Thanks for reporting. This is a known issue that we're working on. As a work
around, you can install python 2.7.
Cheers,
Jeff
Original comment by jeffvaughan@google.com
on 22 May 2015 at 6:20
Original comment by jeffvaughan@google.com
on 22 May 2015 at 6:21
[deleted comment]
Yes, I did this, and now is working.
yum -y groupinstall "Development tools";
yum -y install zlib-devel
yum -y install bzip2-devel
yum -y install openssl-devel
yum -y install ncurses-devel
yum -y install sqlite-devel
#Instaling python2.7.6 for gcloud, if we set de defautl 2.6 does not work
correctly
wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz -O
Python-2.7.6.tar.xz;
xz -d Python-2.7.6.tar.xz;
tar -xvf Python-2.7.6.tar;
(cd Python-2.7.6 && ./configure && make && make install);
ln -s /usr/local/bin/python2.7 /usr/bin/python2.7;
rm -rf /usr/bin/python;
ln -s /usr/local/bin/python2.7 /usr/bin/python;
Original comment by darkh...@gmail.com
on 22 May 2015 at 8:26
there is another problem when you install python2.7.6 and you set it like
default, yum command stops working, so you have to replace teh first line of
file: /usr/bin/yum with #!/usr/bin/python2.6, to do this you can execute the
next script.
#Configuring yum module to use python2.6
sed -i "1s/.*/#!\/usr\/bin\/python2.6/" /usr/bin/yum;
So this way python2.6 is used by yum and python2.7.6 is default used by gcloud
Original comment by darkh...@gmail.com
on 22 May 2015 at 10:22
Please also not that you can use
export CLOUDSDK_PYTHON=/path/to/python2.7
in your .profile or .bashrc file to tell gcloud where to find python. That's
probably safer than patching yum...
Original comment by jeffvaughan@google.com
on 26 May 2015 at 5:25
export CLOUDSDK_PYTHON=/path/to/python2.7
Helped for me. Thanks.
Original comment by orsenthil@gmail.com
on 7 Jun 2015 at 5:31
Thank you, that way is better.
Original comment by darkh...@gmail.com
on 9 Jun 2015 at 12:34
Original comment by jsche...@google.com
on 14 Mar 2016 at 8:44
Original issue reported on code.google.com by
darkh...@gmail.com
on 22 May 2015 at 5:38