-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial 2
IDE means Integrated Development Environment, you know we always need to be in a virtual environment before programming, you can image the environment just like a big empty house, and after you come into a certain house and have many tools you can do many things that you want.Here we mainly present two types of IDE,Pycharm and Jupyternotebook.
Before introducing jupyter notebook,let us figuring out what anaconda is.Anaconda is an open-source package and environment manager that can be used to install different versions of packages and their dependencies, helping us to switch between different environments. We can use many simple command lines to realize our demands.
-
Visit it’s official website, choose Windows or Linux version to download, you can try both all.
-
In the process of installing, you just need to tick the option according to the indication and just wait,it may take a few minutes.
-
After installing, you can check it if you make it in Window’s
CMD
that can be found by press the keyboard Win+R and Enter. You can input conda -V in cmd, if you got the information of anaconda's version, you make it!
If you meet any problems, you can always find the solution from the ZhiHu, BaiDu, or BiliBli. If you failed, just change another and try again.
OK,If you install anaconda (windows version) successfully, you can find Jupyter Notebook in anaconda, which is a very convenient tool that can enable interactive programming and take notes.
PyCharm is a Python IDE built by company JetBrains. It provides a smart, configurable editor with code completion, code snippets, support for code folding and split windows to help users code faster and easier.
We can come to it’s official website to download the installation packages, It’s worth noting that there are two versions can be downloaded, one is professional and another is community, you can choose the latter, because it is free, or you can use SHU’s email to apply to register professional version when you activate the pycharm.
And the detailed steps of installation you can reference this tutorial.
Open your CMD
in your terminate, you can type your first command line about conda conda --v
, then you will get the information about the version of conda. Besides, there are some other important command lines you need to know.
conda create –name my_pymatgen python=3.10
This command line can create a new environment that named my_pymatgen and it’s python version is 3.10, you can create many environments easily for yourself that facilitates management.
conda env list
If you forget the name of environment you created before or how many environments you have created, you can run this command lines.
conda install ***
We can add many modules(tools) into a specific environment that also can be done by conda command lines. Such as conda install numpy
, but you need to activate an environment first before you install modules.
conda activate my_pymatgen
This command line is use for activating environment or switch to another environment.
conda list
If you want to look how many modules in current environment, you can run this command line to get the information you want.
Congratulations, you have understood the two different IDE and some conda commands, Now you can move on to Tutorial 3