Technology Sharing

Commands in the anaconda PowerShell prompt

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

1. Check the installation directory

pip list

or

conda list

2. View the virtual environment

conda env list

3. Enter the virtual environment

conda activate Environment Name

For example: conda activate pytorch_learn

4. Install Virtual Environment

conda create -n “××” python=×

5. Install a module/package in a virtual environment

Enter the virtual environment first

Again

conda install package

pip install package

6. How to open jupyter notebook

(base) PS C:UsersWZS-CN> conda activate pytorch_learn //Enter the virtual environment
(pytorch_learn) PS C:UsersWZS-CN> jupyter notebook

7. How to open tensorboard

1. Open Anaconda Powershell Prompt and enter directly“tensorboard --logdir="×" ”(× is the file name defined in summarywriter)