Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Cython

Cython is installed to compile the Python driver pymongo, which improves the MongoDB performance and stability. To ensure normal compilation and installation of MongoDB, you need to install the Cython dependency.

  1. Go to the /root directory.
    1
    cd /root
    
  2. Clone Cython in the Git code repository.

    If the git clone command fails to be executed, replace github.com with github.com.cnpmjs.org and run the download command again.

    1
    2
    git config --global http.sslVerify false
    git clone -b 3.0.0a9 https://github.com/cython/cython.git
    
  3. Install Cython.
    • If the MongoDB version is 3.6.13 or 4.0.12, run the following commands:
      1
      2
      cd /root/cython
      python2 setup.py install
      
    • If the MongoDB version is 6.1.0, run the following commands:
      1
      2
      cd /root/cython
      python3 setup.py install
      

    Output for the start:

    Output for the end: