Home >Backend Development >Python Tutorial >The basic uses and installation methods of some packages in Python
This article introduces the functions and installation methods of some common packages in Python. I hope it will be helpful to friends who are learning Python!
The basic uses and installation methods of some packages in Python
pika can be used to connect rabbitmq
pip install pika -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
requests is an HTTP library
Request supports HTTP connection persistence and connection pooling, supports using cookies to maintain sessions, supports file upload, and supports encoding of automatic response content , supports internationalized URLs and automatic encoding of POST data.
pip install requests -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
SQLAlchemy is an ORM framework
pip install SQLAlchemy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pymongo is a library that connects to mongodb
pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
MySQL-python is a library for connecting to mysql
apt-get install python-mysqldb
gearmanDistributed task system
pip install gearman -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
lxml is a parsing library for python that supports HTML and XML parsing
pip install lxml -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
elasticsearch library, es client library
pip install elasticsearch -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pycurlis the curl library
pip install pycurl -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Error reporting
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
apt-get install libcurl4-openssl-dev
Many python training videos, all on the python learning network, welcome to learn online!
The above is the detailed content of The basic uses and installation methods of some packages in Python. For more information, please follow other related articles on the PHP Chinese website!