Skip to content

Instantly share code, notes, and snippets.

@parthopdas
Created October 6, 2020 12:45
Show Gist options
  • Save parthopdas/16311efc99c212cef2cb928b1b2a5fb8 to your computer and use it in GitHub Desktop.
Save parthopdas/16311efc99c212cef2cb928b1b2a5fb8 to your computer and use it in GitHub Desktop.
Setup an ML environment
- Anaconda on PowerShell: & 'C:\Users\partho\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\Users\partho\Anaconda3' ; cd d:\src\c
- Create new environment
  - Setup conda
    - conda deactivate
    - conda env remove --name rl.gym.1
    - conda create --name rl.gym.1 python=3.6
    - conda activate rl.gym.1
  - Install dependencies
    - conda install pylint pywin32 jupyter pycodestyle
    - conda install pandas scikit-learn scipy numpy seaborn matplotlib
    - # conda install spacy gensim nltk # For NLP 
    - conda install pytorch torchvision cudatoolkit=10.1 -c pytorch # For CUDA 10.2
  - conda env export --name rl.gym.1 >.environment.yml

- Use existing environment
  - conda env create -f .environment.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment