####################################
20 Python must have libraries
####################################
1. Requests : The most famous http library. It’s a must have for every python developer.
2. Scrapy : If you are involved in webscraping, then this is a must have library for you. 3. wxPython : A gui toolkit for python.
4. Pillow : A friendly fork of PIL (Python Imaging Library).
5. SQLAlchemy : A database library.
6. BeautifulSoup : This xml and html parsing library is very useful for beginners.
7. Twisted : The most important tool for any network application developer. It has a very beautiful api and is used by a lot of famous python developers.
8. NumPy : It provides some advance math functionalities to python.
9. SciPy : It is a library of algorithms and mathematical tools for python.
10. matplotlib : A numerical plotting library. It is very useful for any data scientist or any data analyzer.
11. Pygame : This library will help you achieve your goal of 2d game development.
12. Pyglet : A 3d animation and game creation engine.
13. pyQT : A GUI toolkit for python.
14. pyGtk : Another python GUI library. It is the same library in which the famous Bittorrent client is created.
15. Scapy : A packet sniffer and analyzer for python made in python.
16. pywin32 : A python library which provides some useful methods and classes for interacting with windows.
17. nltk : Natural Language Toolkit
18. nose : A testing framework for python. It is used by millions of python developers. It is a must have if you do test driven development.
19. SymPy : SymPy can do algebraic evaluation, differentiation, expansion, complex numbers, etc. It is contained in a pure Python distribution.
20. IPython : It has completion, history, shell capabilities, and a lot more.
=============================================================
Steps to install matplotlib in ubuntu (Python version 3.5)
=============================================================
1.
Checking if matplotlib is already installedFirst, check if matplotlib is already installed on your system:
$ python
>>> import matplotlib
>>>
If you don't see an error message, then matplotlib is already installed on your system and you should be able to get started right away on this chapter's projects. If you get an error message, read the appropriate section below for help installing matplotlib on your operating system.
2.
Installing matplotlib on Linux
If you're using the version of Python that came with your system, you can use your system's package manager to install matplotlib in one line. For Python 3, this is:
$ sudo apt-get install python3-matplotlib
If you're using Python 2.7, this is:
$ sudo apt-get install python-matplotlib
3.
Then use pip to install matplotlib:
$ pip install --user matplotlib
=========================================================
Demo program to test whether matplotlib is working or not:
=========================================================
import matplotlib.pyplot as plt
import numpy as npt = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2*np.pi*t)
plt.plot(t, s)
plt.xlabel('time (s)')
plt.ylabel('voltage (mV)')
plt.title('About as simple as it gets, folks')
plt.grid(True)
plt.savefig("test.png")
plt.show()