mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
@@ -53,7 +53,9 @@ line at the bottom of your ``~/.bashrc`` file
|
||||
|
||||
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
|
||||
|
||||
Now, we can install Python 2.7: ::
|
||||
Now, we can install Python 2.7:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ brew install python
|
||||
|
||||
|
||||
@@ -25,9 +25,13 @@ tedious, so add the directories for your default Python version to the PATH.
|
||||
Assuming that your Python installation is in ``C:\Python27\``, add this to your
|
||||
PATH::
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
C:\Python27\;C:\Python27\Scripts\
|
||||
|
||||
You can do this easily by running the following in ``powershell``::
|
||||
You can do this easily by running the following in ``powershell``:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\;C:\Python27\Scripts\", "User")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user