Remember one environment to build (the whole group of people three hours)

The development process, to find a high star of "DjangoBlog" repo to reference
clone project, configure the environment (2: 30-5: 00), be patient, to be used for such a long time to configure the environment
1. For unknown open source project, certain to configure a virtual environment, using activation - to create a virtual environment
2. download, a key installation package script execution environment of written correspondence found it impossible to install the package
Here Insert Picture Description
Here Insert Picture Description
3. Check error cmd command to view github others mentioned issue (they must be enlarge regular projects, there are problems to solve)
4. Can not download, view error cmd command - Search blog, how to install build_tools MC:
https://blog.csdn.net/u012247418/article/details/82314129
successful download
Here Insert Picture Description
5 the secondary error: a third-party library (plug-ins) django mdeditor not installed successfully, decide to manually install the script _ find this library on github (to enter pip are very official libraries)
6. open requirement.py, delete django-mdeditor
Here Insert Picture Description
7. find this problem in issue, use mdeditor found in the download script installation setup, pip is not supported
under 8. Learn what django-mdeditor East
9. downloaded from github django-mdeditor (a plug-in, it is understood that a software download the source code), a setup is mounted inside
10. In Venv, Django mdedit switch to the directory, the installation: python setup.py install
(setup.py is django-mdeditor installation startup script)
Here Insert Picture Description
11. The third error: the emergence of BUG, UncodeError:
Here Insert Picture Description
analysis of the error message, the problem is coded
12. Open the script setup django-mdeditor is
Here Insert Picture Description
changed manually, according to the error message will comment out the garbage
Here Insert Picture Description
Here Insert Picture Description
13. Save your setup.py file, execute python setup again .py install, successfully complete installation package environment

Or the most simple:
direct use configured virtual environment - a good package has been configured, plug-in environment, brought directly

Part II: Modify the code
change Gangster environment variables (with the os), into their own environment variables, you can run the

Here Insert Picture Description

Published 54 original articles · won praise 1 · views 2734

Guess you like

Origin blog.csdn.net/weixin_44682507/article/details/104757815