differentiate mkvirtualenv and mkproject for virturalenvwrapper

萝らか妹 提交于 2019-12-05 15:01:11
  1. This is expected behaviour. The command mkvirtualenv creates a virtual environment but it does not create a project for you. Some people do web development with Django, others do scientific programming in Python so it would be too broad for mkvirtualenv to setup something for you. You can simply create a directory yourself if you're starting a new project.

  2. If both projects are in different directories, you can activate the virtual environment and then navigate to either project directory to work on that. You can then also execute the code of each project while you're in that virtual environment. This way you don't need to reinstall the requirements again in a new virtual environment.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!