Python – Command “python setup.py egg_info” failed with error code 1 /tmp/pip-build-21ft0H/pandas

Here is the solution how to fix the error when you trying to install Pandas

Python - Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-21ft0H/pandas

First you need to uninstall all the Pythons (I knew it’s a bad idea but it works).

yum remove python

Then install python 2.7.10 using these commands.

wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar -xvzf Python-2.7.10.tgz
cd Python-2.7.10
make install

Make sure your python 2.7.10 installed in your system.

python -V

After that you need to install python 2.7.5 via RPM.

rpm -i ftp://195.220.108.108/linux/centos/7.1.1503/updates/x86_64/Packages/python-2.7.5-18.el7_1.1.x86_64.rpm

Install Pandas package via pip

sudo pip install pandas
sudo pip install pandas.

sudo pip install pandas.

Voila!! It’s done!!

IBM has open contract positions for Bluemix

IBM has open contract positions for Bluemix in all of ASEAN (SG, MY, TH, ID, PH) for fresh graduates.

IBM Bluemix

IBM Bluemix

Candidate should fit 2-3 of the minimum requirements:
1. Minimum of 2 years in Web Application Development using NodeJS, Java or Go
2. Minimum of 2 years in Android or iOS application development
3. Familiar with Web stack – HTML, CSS and JavaScript.
4. Familiar with MongoDB or other NoSQL (Document-based)
5. Familiar with Relational Database
6. Familiar with Web Services (REST or SOAP) and OOP concept
7. Familiar with cloud environment (IaaS or PaaS)
Bonus points for:
1. Experience or knowledge in data analytics – especially social media analytics
2. Experience in web development framework – Angular JS, jQuery, Bootstrap
3. Skill in other programming language (Ruby, Python, Scala, C#, etc)
4. Conceptual knowledge in MVC or microservices
5. Past experience in using PaaS
6. Experience in IoT related development (Raspberry Pi, Arduino, etc)
7. Degree in Computer Science / Computer Engineer / AI
8. Experience in DevOps – i.e. Continuous Integration, Continuous Deployment is a plus
9. Experience or knowledge in Docker container technology.

To those interested, can send your resume to st.wissel@sg.ibm.com.

Learning python in 1 hour

This tutorial I got it from makeweekend robotic that held at Media Prima, Kuala Lumpur. I just want to share with you all about learning python programming language in fastest way. Python programming language is really straight forward compare to other.

python

python

Reference

This tutorial will cover a few of topics .

  • Variables
  • Conditionals
  • Loop
  • Functions

Before we go any further, we need a tool to code simple python script. Mac already pre-installed python library.

Variables

Open up TextMate(Mac)/ Notepad++ (Windows) and type code below.

#file: variable.py
counter = 100 # An integer assignment
weight = 12.34 # A floating point
name = "python" # A string
     print counter
     print weight
     print name
textmate

textmate

Then save the code in your specific location and name it variable.py .

 

textmate 2

textmate 2

Open up yout Terminal(Mac) / CMD(Windows) to test your script. Cd to your script directory and type command below.

cd /Applications/MAMP/htdocs/com.revivalx.python
python variable.py
python-variable

python-variable

Conditionals

#file: conditional.py
num = 8
if (num == 8):
    print “this number is 8”
else:
    print “this number is not 8”
if (num != 9):
    print “this number is not 9”
python - conditional

python – conditional

Loop

#file: loop.py
counter = 0
while (counter < 3):
     print counter
counter = counter + 1
python-loop

python-loop

 

Functions

import math
def do_math(x, y):
returnval = x*x + y*y
returnval = math.sqrt(returnval)
return returnval

     print do_math(3, 4)
     print do_math(9, 16)
python-function

python-function

So what happen next? What our agenda after this? For the next tutorial, I will show you how to integrate python script with embedded device such as Raspberry PI. Enjoy!!