https://github.com/codewithcharan/anaconda-commands
https://github.com/codewithcharan/anaconda-commands
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codewithcharan/anaconda-commands
- Owner: CodeWithCharan
- Created: 2024-09-07T13:25:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T13:31:58.000Z (almost 2 years ago)
- Last Synced: 2025-05-27T00:43:21.673Z (about 1 year ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anaconda commands:
## Basic Conda Commands
- **Check conda version:**
```bash
conda --version
```
- **Update conda:**
```bash
conda update conda
```
- **Update Anaconda distribution:**
```bash
conda update anaconda
```
## Creating Environments
- **Create a new environment with a specific Python version:**
```bash
conda create -n myenv python=3.8
```
## Activating/Deactivating Environments
- **Activate an environment:**
```bash
conda activate myenv
```
- **Deactivate the current environment:**
```bash
conda deactivate
```
## Listing Environments
- **List all environments:**
```bash
conda env list
```
## Removing Environments
- **Remove an environment:**
```bash
conda remove --name myenv --all
```
## Packages
- **List all installed packages in the current environment:**
```bash
conda list
```
- **Update a package:**
```bash
conda update numpy
```
- **Update all packages in the environment:**
```bash
conda update --all
```
- **Remove a package from the current environment:**
```bash
conda remove numpy
```
- **Search for a package:**
```bash
conda search package-name
```
- **Clean unused packages and caches:**
```bash
conda clean --all
```