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

make_env.sh 506 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
  1. #!/bin/bash
  2. # Define variables
  3. ENV_FILE="environment.yaml"
  4. # Change to the script's directory or exit if unsuccessful
  5. cd "$(dirname "$0")" || { echo "Unable to change directory. Exiting."; exit 1; }
  6. # Get environment name
  7. ENV_NAME=$(awk '/name:/ {print $2}' "$ENV_FILE")
  8. # Create environment
  9. conda env create --file "${ENV_FILE}" --verbose
  10. # Activate environment and install the project as a package
  11. conda run -n "${ENV_NAME}" pip install -e .
  12. # Informative message
  13. echo "Environment setup complete"
Tip!

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

Comments

Loading...