当前位置:网站首页>File "manage.py", line 14) from exc ^ syntaxerror: cause and solution of invalid syntax error
File "manage.py", line 14) from exc ^ syntaxerror: cause and solution of invalid syntax error
2022-07-24 07:15:00 【Bevis_ OTL】
1. problem
stay linux Installation on django, And upload the project , perform python manage.py runserver when , Wrong report , An error is as follows :
File "manage.py", line 14
) from exc
^
SyntaxError: invalid syntax
The reason is because I use pip3 Installed django(pip3 install django), But it's run time. I use python manage.py runserver, But mine linux Upper python Or point to python2, So report this mistake .
2. terms of settlement
Ensure your operation django Of pip and python All are 3 Or both 2.linux Default is python2 and pip2 Of .
You can use the following two commands to view
ls -l /usr/bin/pip* # see pip Point to the who
ls -l /usr/bin/python* # see python Point to the who
python install Python3 And will pip Set to Python3 Medium pip
边栏推荐
- Unity中使用深度和法线纹理
- Day (0~6) represents the starting position of the first day of each month, stop represents the number of days of each month, and there are two blank spaces between each day. Input different days and s
- C language from entry to soil function
- libsvm 使用参数的基础知识笔记(1)
- Cmake notes
- Traditional e-commerce dividends disappear, how to enter the new social e-commerce?
- After grouping, return to the last record group in each group_ Use of concat
- GIMP自定义截图
- Chinese manufacturers may catch up with the humanoid robot Optimus "Optimus Prime", which has been highly hyped by musk
- Vs2019 configuration running open3d example
猜你喜欢

RIoTBoard开发板系列笔记(九)—— buildroot 移植MatchBox

一日一书:机器学习及实践——从零开始通往kaggle竞赛之路

C language to achieve three chess? Gobang? No, it's n-chess

第二部分—C语言提高篇_3. 指针强化

Redis 主从机制

第二部分—C语言提高篇_2. 内存分区

QoS服务质量三DiffServ模型报文的标记及PHB

Traditional e-commerce dividends disappear, how to enter the new social e-commerce?

Filter filter

安全工具之hackingtool
随机推荐
FPGA实现AXI4总线的读写
论文阅读:HarDNet: A Low Memory Traffic Network
Redis 哨兵机制
/etc/rc. Local setting UI program startup and self startup
Accumulation of project problems
【LeetCode】11. 盛最多水的容器 - Go 语言题解
Vs2019 configuration running open3d example
Part II - C language improvement_ 2. Memory partition
Filter 过滤器
Prompt for garbled code when CHM file is opened
Chinese manufacturers may catch up with the humanoid robot Optimus "Optimus Prime", which has been highly hyped by musk
Talk about your thoughts about the future
【方向盘】IDEA的代码审查能力,来保证代码质量
avaScript的流程控制语句
【PTA】团体程序设计天梯赛-练习集 L3题目总结(不全)
安全工具之hackingtool
项目上线就炸,这谁受得了
GIMP自定义截图
The function of extern, static, register, volatile keywords in C language; Nanny level teaching!
17. What is the situation of using ArrayList or LinkedList?