✏️
rjnotes
  • Home
  • Books To Read in 2023
  • Mac & Ubuntu Commands - v2
  • DevOps Tasks
  • AWS Commands
  • AWS IAM Policies
  • Autoscaling Automation
  • Shell Commands - Unix
  • RJTools
  • Github
  • VAP
  • virtualenv
  • Alembic Commands
  • Aerospike commands
  • AWS Lambda Commands
  • AWS Glue Commands
  • AWS IAM Policies
  • Azure Commands
  • Cassandra Commands
  • Clickhouse Commands
  • Conda Commands
  • Docker Commands
  • IV Assignments
  • AWS Pricing
  • LangChain Commands
  • Python templates
  • PyLint
  • Pandas Commands
  • CICD
  • GitBook - How to publish
  • HTTPS Fix
  • Video Fix
  • Sublime
  • YT Videos
  • Template
  • GenAI Cards
  • Assignment Validator
  • Auth
  • Decision Maker Persona
  • Session Time
  • New Language Learning
  • Finnish Learning
  • Paste Image Extension
  • Director vs Head vs VP
Powered by GitBook
On this page

Was this helpful?

Conda Commands

cd /tmp
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh

conda config --set auto_activate_base false
conda info

conda install pip

conda env list

pip list
conda create -y python=3 --name my_env

conda create -y python=3.6 --name rjx

conda create -y python=3.7 --name ml37

conda create -y python=2.7 --name py27

conda create -y python=3.8 --name py38

conda create -y python=3.4 --name py34

conda create -y python=3.5 --name py35

conda create -y python=3.7 --name py37dl

conda create -y python=3.8 --name ml38

conda create -y python=3.6.4 --name py364dl

conda create -y python=3.6 --name py36az_jupyter
conda activate py36az_jupyter
conda deactivate

create -n pyone
source activate pyone
source deactivate pyone

conda create -y python=3.8 --name py38_jupyter

conda env remove -n pydl

How to get the conda environment in python code:
import os
os.environ['CONDA_DEFAULT_ENV']


conda create -n py27 python=2.7
	https://salishsea-meopar-docs.readthedocs.io/en/latest/work_env/python3_conda_environment.html
    
    
Remove conda remove / how to remove (base) in terminal?
conda config --set auto_activate_base False
source ~/.bashrc
https://askubuntu.com/questions/1026383/why-does-base-appear-in-front-of-my-terminal-prompt

how to open jupyter lab?
jupyter lab

show all installed libraries:
pip list



# clone environment
conda create --name etl38 --clone py38

# list the lib in the environment
conda list -n py38


conda env location in Mac
/opt/anaconda3/envs/etl38


pip freeze > req2.txt
	https://pip.pypa.io/en/stable/cli/pip_freeze/

conda create -y python=3.8 --name etl381

conda create -n mlflow python=3.7
conda activate mlflow
conda env create -f scipy.yml
	https://github.com/aws/studio-lab-examples/tree/main/custom-environments
PreviousClickhouse CommandsNextDocker Commands

Last updated 2 years ago

Was this helpful?