首页 > 解决方案 > Cannot install Django on Windows because there is an invalid character in a filename

问题描述

I have been trying to pip install django, but I can’t do it because Windows doesn’t like the invalid filename. Do I have any options other than running a Linux virtual machine?

标签: pythondjangowindows

解决方案


确保您已安装 Git Bash ( https://git-scm.com/download/win ) 并确保在您的计算机上安装了 python 和 pip。

完成所有这些后,只需运行 Git Bash 并执行pip install django. 如果它不起作用或者您同时安装了 python2 和 python3,请使用pip3 install django


推荐阅读