Category: Python

Mac10.9 install libxml

When I try to install libxml in my Mac10.9 using pip or easy_install, I get error like below : clang: error: unknown argument: '-mno-fused-madd' I have solved (clang: error: unknown argument: ‘-mno-fused-madd’) this method by type this text in our console : export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments install libxml using command : sudo pip install lxml

Python struct integer overflow masking is deprecated

When create a script with Python, I get warning message Python struct integer overflow masking is deprecated. My script running well, but I dont like this warning and want to remove this. This is my simple code with Python struct integer overflow masking is deprecated warning message : #!/usr/bin/python # -*- coding: utf-8 -*- import

Python List Files in Directory

When I create a program with Python to read multiple file in directory, I get problem how Python list file in directory. After searching at Python documentation, I get documentation how Python implementated list file in directory. We can use module os (import os) to Python List Files in Directory. This module provides a portable