Search code examples
pythonmongodbbottlecloud9-ide

Installing PyMongo and bottle in cloud9 IDE


How to install PyMongo and bottle in cloud9 IDE?


Solution

  • The best method to install PyMongo and Bottle in Cloud9 is via Python-pip. Get pip first. Open your C9 terminal and run the following commands:

    sudo apt-get install python-pip
    

    After pip is installed you can get PyMongo and Bottle by running the following commands:

    sudo pip install pymongo
    
    sudo pip install bottle
    

    A tip, while specifying the localhost url enter 0.0.0.0 instead of localhost on your C9 machine. For example in your server file use,

    bottle.run(host='0.0.0.0', port=8080)