This post works through the Python configuration of Fedora
instance, and continues the configuration of my LAMP VMware
instance. It covers how you add the MySQL-python
libraries to the Fedora instance, and provides the students with
one more language opportunity for their capstone lab in the
database class.
A standard Fedora Linux distribution installs Python 2.7 by
default. Unfortunately, the MySQL-python library
isn’t installed by default. You can verify the Python version by
writing and running the following version.py program
before installing the MySQL-python library:
1 2 3 4 5 |
# Import sys library. import sys # Print the Python version. print sys.version |
You can run the version.py program dynamically like
this from the current working directory: