The projects created in PyCharm all go into a folder of projects that you can choose.
A new project in PyCharm comes up with two options:
- Pure Python
- Django
and opens in the default, Pure Python as shown in the image
You provide a name for your , by overwriting the default, pythonProject
The location will be the owners folder in C:\Users
Next, it shows the interpreter related information. It creates Project's Venv, the virtual environment in the root of the project and the Python version and its location in the folder structure:
The next picture shows the Python interpreter related details and the version.
The Base conda tabbed page shows the Base conda installed. Conda is another package management and environment management system.
A brief information about Conda is in the appendix.
The Custom environment tab shows the Type (default is Virtualenv) which is project specific and the location of the python interpreter and its location.
There are options to inherit packages from the base interpreter and also choose to make available the packages to all projects. If you don't choose to make available to all projects then it will be only available for the specific projects.
When you choose to create a New Project using the Django option you display the following:
To use this option you must upgrade to PyCharm Professional. You also get support for Django templates with many more useful features like syntax and error highlighting, code completion, etc.
The next picture shows the HelloWorld project, a default project that PyCharm is shipped with. The .venv folder has all the packages and the libraries.
It also has the scripts used in the project as shown:
In order to work with projects, knowing the IDE is very crucial.
No comments:
Post a Comment