This is a very basic guide on python environment setting in CAD Lab Task and will keep updating.
- Install Anaconda
- Install PyCharm
we'll use PyCharm as the code IDE.
Notice: As students, we can get PyCharm Professional version freely. Please refer to here if you want.
Open your terminal and try to create new environments as following steps.
- Input
conda env list
to see conda environments you own. - Input
conda create -n env_name python=x.x
to create a new environment(python=3.7
is recommended). Once created, you can usepip list
to show packages the env installs orpip freeze > requirements.txt
to get package list txt. conda activate env_name
to enter the new environment. Now useconda install package
to install packages you want! Useconda deactivate
to exit.- If you want to package your environment, use
conda env export > env_name.yml
to export.
Notice: I packed my environment CADLab.yml
which can be found in GitHub. Try conda env create -f CADLab.yml
to skip the
steps above and directly install the environment.
In PyCharm, setting
-> Python Interpreter
-> Show all
-> add
-> conda environment
-> existing environment
->
conda executable
-> choose one env
You can find more detailed guide in here
conda install jupyter
if there not.
Create a new .ipynb file. Now you can use it in Pycharm!