Skip to content

Commit edab9b5

Browse files
authored
[Doc] Use -U instead of --force-reinstall (mlc-ai#1062)
`--force-reinstall` will reinstall all dependencies to a python package, which is unnecessary. `-U` is a better choice in this case.
1 parent ca8c11b commit edab9b5

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

docs/install/mlc_llm.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,49 +29,49 @@ Select your operating system/compute platform and run the command in your termin
2929
.. code-block:: bash
3030
3131
conda activate your-environment
32-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
32+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
3333
3434
.. tab:: CUDA 11.7
3535

3636
.. code-block:: bash
3737
3838
conda activate your-environment
39-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-cu117 mlc-ai-nightly-cu117
39+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-cu117 mlc-ai-nightly-cu117
4040
4141
.. tab:: CUDA 11.8
4242

4343
.. code-block:: bash
4444
4545
conda activate your-environment
46-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-cu118 mlc-ai-nightly-cu118
46+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-cu118 mlc-ai-nightly-cu118
4747
4848
.. tab:: CUDA 12.1
4949

5050
.. code-block:: bash
5151
5252
conda activate your-environment
53-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-cu121 mlc-ai-nightly-cu121
53+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-cu121 mlc-ai-nightly-cu121
5454
5555
.. tab:: CUDA 12.2
5656

5757
.. code-block:: bash
5858
5959
conda activate your-environment
60-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-cu122 mlc-ai-nightly-cu122
60+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-cu122 mlc-ai-nightly-cu122
6161
6262
.. tab:: ROCm 5.6
6363

6464
.. code-block:: bash
6565
6666
conda activate your-environment
67-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-rocm56 mlc-ai-nightly-rocm56
67+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-rocm56 mlc-ai-nightly-rocm56
6868
6969
.. tab:: ROCm 5.7
7070

7171
.. code-block:: bash
7272
7373
conda activate your-environment
74-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-rocm57 mlc-ai-nightly-rocm57
74+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-rocm57 mlc-ai-nightly-rocm57
7575
7676
.. tab:: Vulkan
7777

@@ -94,7 +94,7 @@ Select your operating system/compute platform and run the command in your termin
9494
.. code-block:: bash
9595
9696
conda activate your-environment
97-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
97+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
9898
9999
.. note::
100100

@@ -115,7 +115,7 @@ Select your operating system/compute platform and run the command in your termin
115115
.. code-block:: bash
116116
117117
conda activate your-environment
118-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
118+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
119119
120120
.. note::
121121
If encountering the error below:

docs/install/tvm.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,49 +37,49 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
3737
.. code-block:: bash
3838
3939
conda activate your-environment
40-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly
40+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
4141
4242
.. tab:: CUDA 11.7
4343

4444
.. code-block:: bash
4545
4646
conda activate your-environment
47-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cu117
47+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu117
4848
4949
.. tab:: CUDA 11.8
5050

5151
.. code-block:: bash
5252
5353
conda activate your-environment
54-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cu118
54+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu118
5555
5656
.. tab:: CUDA 12.1
5757

5858
.. code-block:: bash
5959
6060
conda activate your-environment
61-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cu121
61+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu121
6262
6363
.. tab:: CUDA 12.2
6464

6565
.. code-block:: bash
6666
6767
conda activate your-environment
68-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cu122
68+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu122
6969
7070
.. tab:: ROCm 5.6
7171

7272
.. code-block:: bash
7373
7474
conda activate your-environment
75-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-rocm56
75+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-rocm56
7676
7777
.. tab:: ROCm 5.7
7878

7979
.. code-block:: bash
8080
8181
conda activate your-environment
82-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-rocm57
82+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-rocm57
8383
8484
.. tab:: Vulkan
8585

@@ -102,7 +102,7 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
102102
.. code-block:: bash
103103
104104
conda activate your-environment
105-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly
105+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
106106
107107
.. note::
108108

@@ -123,7 +123,7 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
123123
.. code-block:: bash
124124
125125
conda activate your-environment
126-
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly
126+
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
127127
128128
.. note::
129129
If encountering the error below:

0 commit comments

Comments
 (0)