Created
June 8, 2023 14:19
-
-
Save GenevieveBuckley/87149dfd3f69b41afc8f872cf68ea7c0 to your computer and use it in GitHub Desktop.
Common conda and terminal commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows: open the miniforge terminal prompt | |
conda info --envs | |
# prints a list of the virtual environments you have | |
conda create --name myenv | |
# create a new virtual environment | |
conda activate myenv | |
# activate a virtual environment | |
conda list | |
# similar to 'pip list', this shows a list of packages/libraries installed in the virtual environment | |
mamba install packagename | |
# "mamba install" is faster than "conda install" (yoyu | |
# installs a package into the virtual environment | |
mamba remove packagename | |
# to uninstall a package | |
conda deactivate | |
# Deactivate the virtual environment before you | |
conda remove --name myenv --all | |
# deletes the whole virtual environment completely | |
conda clean --all | |
# removes cached tarballs, etc. from the cache | |
jupyterlab | |
# how to launch | |
Using the command line: | |
pwd | |
# print working directory (where am I) | |
cd /path/to/newfolder | |
# change directory | |
cd ~ | |
# move back to my home directory | |
cd ... | |
# Moves up one folder level | |
cd ../.. | |
# moves up two folder levels, etc. | |
mkdir newfoldername | |
# make new folder | |
# making directories in Python | |
import os | |
os.mkdir("singlefolder") | |
os.makedirs("path/to/nested/directory") | |
# https://note.nkmk.me/en/python-os-mkdir-makedirs/ | |
Delete folders in Windows Explorer / Finder / Dolphin / etc. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment