Support Questions

Find answers, ask questions, and share your expertise

Error (No package python27 available.) while setting up ipython notebook with apache spark

avatar
Explorer

I am trying to set up ipython notebook as per mentioned in tutorial http://hortonworks.com/hadoop-tutorial/using-ipython-notebook-with-apache-spark/ However, while trying to install python 2.7, facing error as "No package python27 available".

Whereas while checking in they system there is already python 2.6.6 is installed. During search over google, found that its not feasible to install python 2.7 over 2.6.6 on HDP, as it may hamper the whole core set up. NOT SURE if its correct!

I am attaching snapshot for more reference on this. Can anyone please help me in resolving this issue?

Thank you in advance for your help.

python-err.png

1 ACCEPTED SOLUTION

avatar

Hi @Amol Y

Ahhh, nothing like reading a tutorial that has an invalid step (it drives me crazy). Sorry about that. I found a fix and verified it worked at https://www.softwarecollections.org/en/scls/rhscl/python27/ - simply first run:

yum install centos-release-scl

this will install a few necessary packages that contain python27, and then run:

yum install python27

I'll see if I can get this tutorial updated.

View solution in original post

4 REPLIES 4

avatar

Hi @Amol Y

Ahhh, nothing like reading a tutorial that has an invalid step (it drives me crazy). Sorry about that. I found a fix and verified it worked at https://www.softwarecollections.org/en/scls/rhscl/python27/ - simply first run:

yum install centos-release-scl

this will install a few necessary packages that contain python27, and then run:

yum install python27

I'll see if I can get this tutorial updated.

avatar
Master Guru

Great find Ryan. Let's see if we can get that added to the tutorial.

avatar
Explorer

Thanks @Ryan Cicak It worked out perfectly for me...

@Timothy Spann : One more defect I found in the same tutorial, its mentioned to download "ez_setup.py" using command "wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py"

However, setuptools repo url is changed now. The new repo url is wget https://bootstrap.pypa.io/ez_setup.py

I able to download the ex_setup.py successfully from the new repo url.

Thanks once again Ryan and Timothy

avatar

Updated tutorial:

1) using centos-release-scl 2) wget https://bootstrap.pypa.io/ez_setup.py Thanks!