Skip to content

Commit b0264b5

Browse files
committed
updated gitbash instructions to use .bash_profile
1 parent f13da97 commit b0264b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/supplemental/installing/python_for_windows.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Terminal
4040

4141
If you are confident in your use of the "DOS Box" or "powershell", command lines, feel free to use one of those. However, your life may be easier if you install "Git Bash", as then you can follow unix-style terminal instructions exactly, and do not have to translate. Also, your instructors are more experienced with Bash.
4242

43-
From now on, if you hear the terms "bash", "shell" or "terminal", or "commandline" know that this is the application that is being referred to. We will use those terms interchangably to mean ANY command line.
43+
From now on, if you hear the terms "bash", "shell" or "terminal", or "command line" know that this is the application that is being referred to. We will use those terms interchangeably to mean ANY command line.
4444

4545
When you install Git Bash, you are installing git (and a git gui) as well, thus killing two birds with one stone!
4646

@@ -51,7 +51,7 @@ You can go through the rest of the prompts using default values. Once you are do
5151

5252
You can use this git with the DOS box or Powershell as well.
5353

54-
This is also a good bet for running Python -- If you use the Git Bash shell, you can use the same commands as Linux and OS-X users. Regardless of which shell you choose, you will need to add Python to your environment. It is possible that this was done during the installation of Python. If you type 'which python' into your terminal, and get back the answer '/c/python34/python', then you are good to go, otherwise (which shouldn't happen if you checked the "Add Python 3.7 to PATH" checkbox when you installed Python above), follow the instructions here:
54+
This is also a good bet for running Python -- If you use the Git Bash shell, you can use the same commands as Linux and OS-X users. Regardless of which shell you choose, you will need to add Python to your environment. It is possible that this was done during the installation of Python. If you type 'which python' into your terminal, and get back the answer '/c/python37/python', then you are good to go, otherwise (which shouldn't happen if you checked the "Add Python 3.7 to PATH" checkbox when you installed Python above), follow the instructions here:
5555

5656
http://www.computerhope.com/issues/ch000549.htm
5757

@@ -101,7 +101,7 @@ Note: if you have trouble running ``python`` command in your gitbash (it hangs),
101101

102102
::
103103

104-
$ echo "alias python='winpty python'" >> ~/.bashrc
104+
$ echo "alias python='winpty python'" >> ~/.bash_profile
105105

106106
You will need to close the current bash window and restart a new one to get this alias. Then from now on, you can just type ``python`` and it should work on git bash (no more hanging) as well.
107107

@@ -128,7 +128,7 @@ It should download and install the latest ``pip``.
128128

129129
You can now use pip to install other packages.
130130

131-
The first thing you may want to do is update pip itself:
131+
The first thing you may want to do is update pip itself:
132132

133133
.. code-block:: bash
134134
@@ -171,7 +171,7 @@ You should now be able to run ``iPython`` from the git bash shell or "DOS Box" o
171171
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.
172172
(or from the DOS box or PowerShell prompt)
173173

174-
We will use this as our default Python interpreter.
174+
We will use this in class as our default Python interpreter.
175175

176176

177177
Testing it out
@@ -187,7 +187,7 @@ All available from the command line.
187187

188188
To try it out, you should be able to run all of these commands, and get something like the following results:
189189

190-
(recall that you can get out of the python or iPython command lines with ``ctrl+Z``)
190+
(recall that you can get out of the python or iPython command lines with ``ctrl+Z`` (ifthat doesn't work, try ``ctrl+D`` -- the *nix version))
191191
192192
For Python:
193193

@@ -209,7 +209,7 @@ For iPython:
209209
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
210210
Type 'copyright', 'credits' or 'license' for more information
211211
IPython 6.5.0 -- An enhanced Interactive Python. Type '?' for help.
212-
212+
213213
In [1]:
214214
Do you really want to exit ([y]/n)? y
215215

0 commit comments

Comments
 (0)