Pip reported using a coding error, use django startproject test also reported a coding error

As shown below, when using the given pip

  File "D:\Microsoft Visual Studio\Shared\Anaconda3_64\Scripts\pip.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file D:\Microsoft Visual Stu
dio\Shared\Anaconda3_64\Scripts\pip.exe on line 1, but no encoding declared; see
 http://python.org/dev/peps/pep-0263/ for details

When the same error also use django-admin at the command line, but it can create in pycharm in normal django project.

Search for a long time been the cause is not found, pip pip error finally reload the settlement, and enter easy_install pip on the command line, returned to normal after the heavy equipment.

C:\Users\caiml>easy_install pip
Searching for pip
Best match: pip 19.0.3
Adding pip 19.0.3 to easy-install.pth file
Installing pip-script.py script to D:\Microsoft Visual Studio\Shared\Anaconda3_6
4\Scripts
Installing pip.exe script to D:\Microsoft Visual Studio\Shared\Anaconda3_64\Scri
pts
Installing pip3-script.py script to D:\Microsoft Visual Studio\Shared\Anaconda3_
64\Scripts
Installing pip3.exe script to D:\Microsoft Visual Studio\Shared\Anaconda3_64\Scr
ipts
Installing pip3.7-script.py script to D:\Microsoft Visual Studio\Shared\Anaconda
3_64\Scripts
Installing pip3.7.exe script to D:\Microsoft Visual Studio\Shared\Anaconda3_64\S
cripts

Using d:\microsoft visual studio\shared\anaconda3_64\lib\site-packages
Processing dependencies for pip
Finished processing dependencies for pip

 

Command line, enter easy_install django reinstall django, but also a lack of system error Microsoft Visual C ++ Build Tools 2014, to http://go.microsoft.com/fwlink/?LinkId=691126 after installation download Microsoft Visual C ++ Build Tools default after 2015, reuse

easy_install django django returned to normal after the heavy equipment.

Published 24 original articles · won praise 30 · views 50000 +

Guess you like

Origin blog.csdn.net/yufen9987/article/details/88389778