pycharm 新建django工程

使用pycharm创建django工程


1.点击file--new project
2.选择Django
3.第一次使用pycharm构建的时候,需要勾选 Previously configured interpreter
点击add interpreter选择add local interpreter.加载出本地的解释器时,要记得勾选inherit globals site-packages
4.点击create 新工程创建成果


5.使用 pycharm创建工程后 打开Terminal,报错:无法加载文件 D:\xxx\xxx\xxx\activate.ps1,因为在此系统上禁止运行脚本
6.问题5的解决办法:
get-ExecutionPolicy,显示:Restricted,表示当前状态是禁止的
在windows的搜索里面输入,powershell,使用以管理员身份运行
在命令行中输入get-ExecutionPolicy,显示:Restricted,表示当前状态是禁止的
在命令行输入:set-ExecutionPolicy RemoteSigned
输入Y,并回车
重新打开pycharm,就不会报错啦
 

猜你喜欢

转载自blog.csdn.net/qq_40333984/article/details/126268342