python/django搭建踩坑

172 阅读1分钟

开始安装,出现一片红.

问题: 很多依赖和包需要现场编译, 因此需要vs c++ built tool

Download Visual Studio Tools - Install Free for Windows, Mac, Linux (microsoft.com)

image.png

解决先决条件

  • pip 升级
  • pip install wheel (可以直接安装binary无需编译)
  1. 版本不兼容, 需要降低python版本, 现在

image.png

  1. numpy 和 scipy这些数学运算包容易出错

  2. 运行过程中需要vs 支持, 所以PyCrypto会出错; 解决如下

image.png

image.png