Django Installation on Windows
Nowadays Python is used more and more widely, so it is very necessary to learn about its hotter web framework. To install Django, the first thing you need to know is which version of python on your computer, as for how to install the python interpreter environment is not introduced here, there are many online tutorials.
Django is a Python web framework, so you need to install Python on your machine. this article is based on the Python3.6 environment installation introduction.
To check the version of python on your computer, use the following command:
python --version
To install django, you also need to install pip, the python integration toolkit. To install pip on your machine, go to the/en/latest/installing/ and follow the "Installing with" instructions.
Installing virtualenv and virtualenvwrapper
Virtualenv and virtualenvwrapper provide a dedicated environment for creating Django for each project. although not mandatory, this is considered a best practice and will save you time in the future when you are ready to deploy your project. Follow these instructions.
pip install virtualenvwrapper-win
Then create a virtual environment for your project.
mkvirtualenv myproject
Some of the information said to execute the following commands, but I did not execute can still be followed by normal installation, you look at the specific circumstances.
workon myproject
The above are no problem after the start of the formal installation of django. execute the following command:
pip install django
This will download and install the latest Django version.
Scrapy Installation on Windows
To install Scrapy, you still have to install pip first. there is a small pitfall here, if we continue to install django like the following:
pip install scrapy
It will report a twist error to go/~gohlke/pythonlibs/
Download and install the appropriate Twisted installer using pip.
Twisted‑18.9.0‑cp36‑cp36m‑
Note:This will be determined by your computer's system and python environment. After downloading, go to the downloaded directory and execute
pip install scrapy
This time, the lack of Microsoft Visual C++ 14.0 environment was reported again, as shown below:
Follow the link given in its tip to the official website and search for it, and you'll find it:
Here whether to enter a dead end, the official website has long been unsupported microsoft visual c + + 14.0, and then check the information, the execution of the following command to get a perfect solution.
pip install Scrapy
Yes, it's that pitiful! A difference between an upper and lower case letter!
After installation, type Scrapy at the command line and see the following prompt indicating that the installation was successful!
This is the whole content of this article.