Python 笔记

2017-08-11  本文已影响18人  MaxPanda

1.多版本python 使用 pip 安装插件命令前加python对应版本的python 命令如:

python3 -m pip install plugin_name 或 python2 -m pip install plugin_name

2.为避免在多个APP中 html 文件名称相同 导致冲突 可在每个 APP 中 templates 文件夹中新建一个和APP名称相同包名的子包 并将所有html 文件放到对应的子包中

3.python3 中 安装beautifulsoup 报 错:Command "python setup.py egg_info" failed with error code 1 in D:\Personal\Temp\pip-build-4skjs8jf\beautifulsoup\  应安装beautifulsoup 的更高版本 beautifulsoup4


上一篇 下一篇

猜你喜欢

热点阅读