Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

colab_setenv.sh 539 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  1. #!/bin/bash
  2. set -e
  3. install_environment() {
  4. if ! command -v conda &> /dev/null
  5. then
  6. wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.9.2-Linux-x86_64.sh
  7. chmod +x Miniconda3-py39_4.9.2-Linux-x86_64.sh
  8. bash ./Miniconda3-py39_4.9.2-Linux-x86_64.sh -b -f -p /usr/local
  9. fi
  10. if ! conda env list | grep "puc_proj_final_env" -q
  11. then
  12. conda env create -f environment.yml
  13. else
  14. conda env update -f environment.yml
  15. fi
  16. }
  17. install_environment
  18. echo "Environment has been set"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...