Python Web 1--python and MongoDB installation

Source: Internet
Author: User
Tags brew install mongodb install mongodb java web robomongo

For a long time client, mainly engaged in the development of Android software and Unity 3D game development, before also looked at the Java Web for some time, but because there is no practical application, so it was shelved for a long time. Recently suddenly have a strong interest in server background programming, want to try to use Python + Mongo db for the development of the game background. Python

Python is a strong type (that is, the variable type is mandatory), dynamic, implicit type (do not need to do variable declaration), case sensitive (Var and var represent different variables), and object-oriented features such as programming languages. Python is an interpreted language, and Python runs slowly and cannot be encrypted compared to the C language. One, the installation of Python:

Since I used the development environment is Mac OS, so I brought Python, but since the 10.10 version is 2.7, so we need to reinstall the 3.x version, installation method:

1. Install the homebrew without installing the Mac plug-in, the installation method is to open the terminal, enter the following instructions:

Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Install Python3 using the following instructions: First view the Python version of the current computer:python
Install new version:Brew Install Python3

Here my installation error, error is not terrible, the solution is good, it is not difficult to see the reason for this error is not enough permissions on the/USR/LOCAL/SHARE/MAN/MAN3 directory, then the solution:sudo chown-r linshuhe/usr/local /share/man/man3

However, there is a problem with multiple versions of Python coexistence and version switching:

If you do not want to modify or delete the system's own python, we can directly specify which version to use to execute the code in the following ways:

In addition to the above methods, you can directly to the official website download the latest version, direct installation can be. Mongo DB First, installation

Installing with homebrew is a simpler way to install:
1. Update Homebrew:Brew Update

2. Start installation MongoDB:Brew Install MongoDB

3. According to the installation completion of the last hint, start MongoDB:
mongod-config/usr/local/etc/mongod.conf

4. Download a visual management tool Robomongo: Download the address is:
Https://robomongo.org/download

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.