The basic uses and installation methods of some packages in Python

angryTom
Release: 2020-02-11 16:13:42
Original
2226 people have browsed it

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

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
Copy after login

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
Copy after login

SQLAlchemy is an ORM framework

pip install SQLAlchemy  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Copy after login

pymongo is a library that connects to mongodb

pip install pymongo  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Copy after login

MySQL-python is a library for connecting to mysql

apt-get install python-mysqldb
Copy after login

gearmanDistributed task system

pip install gearman -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Copy after login

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
Copy after login

elasticsearch library, es client library

pip install elasticsearch -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Copy after login

pycurlis the curl library

pip install pycurl -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Copy after login

Error reporting

__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory

apt-get install libcurl4-openssl-dev
Copy after login

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!