Home  >  Q&A  >  body text

django - pycharm 如何配置 python3 的开发环境?

Mac 上自带python2.7 ,我又安装了 3.5,用 python3.5 这么创建了虚拟环境:
python3 -m venv xxx
然后 pip 了 django 等等,怎么让 pycharm 识别我这个虚拟环境进行 django 的开发呢?

python3.5 自带的虚拟环境不清楚怎么添加到 pycharm 里,没找到这个选项

PHP中文网PHP中文网2741 days ago662

reply all(4)I'll reply

  • 黄舟

    黄舟2017-04-18 10:25:27

    See this fellow Taoist’s article
    https://segmentfault.com/a/11...

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:25:27

    Add the virtual environment to pycharm, which can be added when selecting the interpreter.

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 10:25:27

    The link is the configuration of the Mac system
    Link description

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 10:25:27

    1. Use virtualenv to create a python3.5 Django development environment and create a project.
    2. Use pycharm to open the created project.
    3. Just modify it like this.

    reply
    0
  • Cancelreply