/practice-python

Practice sandbox for python based code

Primary LanguagePython

practice-python

Practice sandbox for python based code

Initial setup on mac

  1. Install miniconda
mkdir -p ~/miniconda3
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh

After installing, initialize your newly-installed Miniconda. The following commands initialize for bash and zsh shells:

~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh
  1. create environment
conda create -n pytorch pytorch
conda activate pytorch 
  1. install pytorch and any other needed tools
conda install jupyter_core -c conda-forge
conda install -c pytorch torchtext
  1. installing legacy capable TREC
conda install -c pytorch torchtext=0.8.1