-
Notifications
You must be signed in to change notification settings - Fork 7
installation troubleshooting
Installing a complex scientific computing environment or a diverse set of laptops is very challenging. Even though our instructions work for most students, there are many ways in which something can not quite work the way as expected.
This page collects notes and recipes on trouble shooting (or "debugging" as we say) the installation process.
For additional help see also SoftwareCarpentry's Configuration Problems and Solutions.
You opened git-bash and try to run the command
pip install vpython
or
python --version
but you get an error such as bash: pip: command not found.
We are adding additional information to your bash shell startup file so that Anaconda will be found.
This solution assumes that you installed Anaconda3 in the default location — if you changed the location in the installation process then you will have to change the content of the MYCONDA variable below to use your custom location.
-
open git-bash
-
type
cd echo $HOME
(always hit RETURN after typing a command)
You should see output such as
/c/Users/YOUR-USERNAME(where "YOUR-USERNAME" stands for your user name, e.g., "alice", "bob", or "dvader") -
type exactly
cat >> $HOME/.bash_profile << 'EOF' # PHY494 bash startup for local Anaconda # see https://github.com/ASU-CompMethodsPhysics-PHY494/PHY494-resources/wiki/installation-troubleshooting MYCONDA="$HOME/Anaconda3" export PATH="$MYCONDA:$MYCONDA/Scripts:$MYCONDA/Library/bin:$PATH" unset MYCONDA EOF
-
close git-bash
-
open a new git-bash (this is important so that the changes take effect)
-
type
which conda
Should print something like
/c/Users/YOUR-USERNAME/Anaconda3/conda.
Then try out again to run pip or python.
Newer versions of Anaconda do not add themselves to the Windows PATH anymore. The installer for Anaconda3 now recommends users by default to NOT add anaconda path to Windows PATH environment variable and thus our installation instructions for windows lead to an installation with Anaconda3 not immediately accessible from the command line.