操作步骤
进入项目根目录
pipenv install
pipenv --python 3.6
pipenv shell
pipenv install django==1.11
补充信息:由于pipenv默认下载源在国外服务器,因为种种原因导致是不是下载慢 超时等等,最好设置国内镜像
打开虚拟环境的python路径 ,进入
vim .project/Pipfile
修改url后的网址即可
清华 https://pypi.tuna.tsinghua.edu.cn/simple
阿里 http://mirrors.aliyun.com/pypi/simple/
Pipfile文件