You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add document for bash script.sh cannot do conda activate problem (#422)
* Add conda activate support to bashrc
* Add doc and make sure conda activate works
* bring back conda activate command for GCP
* Move comment to quickstart
* format
* Fix comments
* Add test/example of using user_script
* Fix indents
* bash -i only for conda activate
* Fix the SKY_NODE_IPS fail to pass to the shell script
* Update readme
* update env_check
* Fix comments
* Change to head -n1
Copy file name to clipboardexpand all lines: docs/source/getting-started/installation.rst
+30-30
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ Install Sky using pip:
7
7
8
8
.. code-block:: console
9
9
10
-
$ # Clone the sky codebase
11
-
$ git clone ssh://git@github.com/sky-proj/sky.git
12
-
$ cd sky
13
-
$ # Sky requires python >= 3.6. 3.10+ is currently NOT supported.
14
-
$ pip install ".[all]"
10
+
$ # Clone the sky codebase
11
+
$ git clone ssh://git@github.com/sky-proj/sky.git
12
+
$ cd sky
13
+
$ # Sky requires python >= 3.6. 3.10+ is currently NOT supported.
14
+
$ pip install ".[all]"
15
15
16
16
If you only want the dependencies for certain clouds, you can also use
17
17
:code:`".[aws,azure,gcp]"`.
@@ -28,27 +28,27 @@ To get the **AWS Access Key** required by the :code:`aws configure`, please refe
28
28
29
29
.. code-block:: console
30
30
31
-
$ # Install boto
32
-
$ pip install boto3
31
+
$ # Install boto
32
+
$ pip install boto3
33
33
34
-
$ # Configure your AWS credentials
35
-
$ aws configure
34
+
$ # Configure your AWS credentials
35
+
$ aws configure
36
36
37
37
38
38
**GCP**:
39
39
40
40
.. code-block:: console
41
41
42
-
$ pip install google-api-python-client
43
-
$ # Install `gcloud`; see https://cloud.google.com/sdk/docs/quickstart
44
-
$ conda install -c conda-forge google-cloud-sdk
42
+
$ pip install google-api-python-client
43
+
$ # Install `gcloud`; see https://cloud.google.com/sdk/docs/quickstart
44
+
$ conda install -c conda-forge google-cloud-sdk
45
45
46
-
$ # Init.
47
-
$ gcloud init
46
+
$ # Init.
47
+
$ gcloud init
48
48
49
-
$ # Run this if you don't have a credentials file.
50
-
$ # This will generate ~/.config/gcloud/application_default_credentials.json.
51
-
$ gcloud auth application-default login
49
+
$ # Run this if you don't have a credentials file.
50
+
$ # This will generate ~/.config/gcloud/application_default_credentials.json.
51
+
$ gcloud auth application-default login
52
52
53
53
If you meet the following error (*RemoveError: 'requests' is a dependency of conda and cannot be removed from conda's operating environment*) while running :code:`conda install -c conda-forge google-cloud-sdk`, please try :code:`conda update --force conda` and run it again.
54
54
@@ -57,12 +57,12 @@ If you meet the following error (*RemoveError: 'requests' is a dependency of con
57
57
58
58
.. code-block:: console
59
59
60
-
$ # Install the Azure CLI
61
-
$ pip install azure-cli==2.30.0
62
-
$ # Login azure
63
-
$ az login
64
-
$ # Set the subscription to use
65
-
$ az account set -s <subscription_id>
60
+
$ # Install the Azure CLI
61
+
$ pip install azure-cli==2.30.0
62
+
$ # Login azure
63
+
$ az login
64
+
$ # Set the subscription to use
65
+
$ az account set -s <subscription_id>
66
66
67
67
**Verifying cloud setup**
68
68
@@ -71,16 +71,16 @@ the CLI:
71
71
72
72
.. code-block:: console
73
73
74
-
$ # Verify cloud account setup
75
-
$ sky check
74
+
$ # Verify cloud account setup
75
+
$ sky check
76
76
77
77
This will produce output verifying the correct setup of each supported cloud.
78
78
79
79
.. code-block:: text
80
80
81
-
Checking credentials to enable clouds for Sky.
82
-
AWS: enabled
83
-
GCP: enabled
84
-
Azure: enabled
81
+
Checking credentials to enable clouds for Sky.
82
+
AWS: enabled
83
+
GCP: enabled
84
+
Azure: enabled
85
85
86
-
Sky will use only the enabled clouds to run tasks. To change this, configure cloud credentials, and run sky check.
86
+
Sky will use only the enabled clouds to run tasks. To change this, configure cloud credentials, and run sky check.
0 commit comments