Skip to content

Commit

Permalink
Merge pull request conda#9334 from rrigdon/standardize-activate
Browse files Browse the repository at this point in the history
Corrected source activate to conda activate
  • Loading branch information
jjhelmus authored Oct 16, 2019
2 parents c01ae72 + d0076eb commit 7ad5a3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/source/user-guide/tasks/manage-pkgs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ To install a non-conda package:
#. Activate the environment where you want to put the program:

* On Windows, in your Anaconda Prompt, run ``activate myenv``.
* On macOS and Linux,in your terminal window, run ``source activate myenv``.
* On macOS and Linux,in your terminal window, run ``conda activate myenv``.

#. To use pip to install a program such as See, in your terminal window or an Anaconda Prompt,
run::
Expand Down
12 changes: 6 additions & 6 deletions docs/source/user-guide/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ Solution
Reactivate the environment or run ``hash -r`` (in bash) or
``rehash`` (in zsh).

When you run ``source activate``, conda automatically runs
When you run ``conda activate``, conda automatically runs
``hash -r`` in bash and ``rehash`` in zsh to clear the hashed
commands, so conda finds things in the new path on the PATH. But
there is no way to do this when ``conda install`` is run because
Expand All @@ -664,7 +664,7 @@ following circumstances:
The command ``type command_name`` always tells you exactly what
is being run. This is better than ``which command_name``, which
ignores hashed commands and searches the PATH directly.
The hash is reset by ``source activate``, or by ``hash -r`` in bash or
The hash is reset by ``conda activate``, or by ``hash -r`` in bash or
``rehash`` in zsh.


Expand Down Expand Up @@ -698,12 +698,12 @@ You may also create a folder with symbolic links to ``conda``,
``activate`` and ``deactivate``, and then edit your
``.bash_profile`` or ``.bashrc`` file to add this folder to your
PATH. If you do this, running ``python`` will invoke the system
Python, but running ``conda`` commands, ``source activate MyEnv``,
``source activate root``, or ``source deactivate`` will work
Python, but running ``conda`` commands, ``conda activate MyEnv``,
``conda activate root``, or ``conda deactivate`` will work
normally.

After running ``source activate`` to activate any environment,
including after running ``source activate root``, running
After running ``conda activate`` to activate any environment,
including after running ``conda activate root``, running
``python`` will invoke the Python in the active conda environment.


Expand Down

0 comments on commit 7ad5a3e

Please sign in to comment.