Skip to content

Commit b7169fd

Browse files
authored
DOC: add note about restarting conda environment after creation (scikit-learn#27387)
1 parent 2f99cda commit b7169fd

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

doc/developers/advanced_installation.rst

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ feature, code or documentation improvement).
6969
.. prompt:: bash $
7070

7171
conda create -n sklearn-env -c conda-forge python=3.9 numpy scipy cython
72+
73+
It is not always necessary but it is safer to open a new prompt before
74+
activating the newly created conda environment.
75+
76+
.. prompt:: bash $
77+
7278
conda activate sklearn-env
7379

7480
#. **Alternative to conda:** If you run Linux or similar, you can instead use
@@ -287,6 +293,12 @@ scikit-learn from source:
287293

288294
conda create -n sklearn-dev -c conda-forge python numpy scipy cython \
289295
joblib threadpoolctl pytest compilers llvm-openmp
296+
297+
It is not always necessary but it is safer to open a new prompt before
298+
activating the newly created conda environment.
299+
300+
.. prompt:: bash $
301+
290302
conda activate sklearn-dev
291303
make clean
292304
pip install -v --no-use-pep517 --no-build-isolation -e .
@@ -307,12 +319,6 @@ forge using the following command:
307319

308320
which should include ``compilers`` and ``llvm-openmp``.
309321

310-
.. note::
311-
312-
If you installed these packages after creating and activating a new conda
313-
environment, you will need to first deactivate and then reactivate the
314-
environment for these changes to take effect.
315-
316322
The compilers meta-package will automatically set custom environment
317323
variables:
318324

@@ -428,6 +434,12 @@ in the user folder using conda:
428434

429435
conda create -n sklearn-dev -c conda-forge python numpy scipy cython \
430436
joblib threadpoolctl pytest compilers
437+
438+
It is not always necessary but it is safer to open a new prompt before
439+
activating the newly created conda environment.
440+
441+
.. prompt:: bash $
442+
431443
conda activate sklearn-dev
432444
pip install -v --no-use-pep517 --no-build-isolation -e .
433445

0 commit comments

Comments
 (0)