作者:曾那么执着o的厮守 | 来源:互联网 | 2023-05-16 09:17
1)安装Python-devel,如果不安装的话在安装pymongo时会出现报警
- WARNING: The pymongo._cmessage extension module could not
- be compiled. No C extensions are essential for PyMongo to run,
- although they do result in significant speed improvements.
-
- If you are seeing this message on Linux you probably need to
- install GCC and/or the Python development package for your
- version of Python. Python development package names for popular
- Linux distributions include:
-
- RHEL/CentOS: python-devel
- Debian/Ubuntu: python-dev
-
- Above is the ouput showing how the compilation failed.
2)安装pymongo