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