mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
@@ -176,7 +176,7 @@ the current state of the environment packages. To do this, run
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
pip freeze > requirements.txt
|
$ pip freeze > requirements.txt
|
||||||
|
|
||||||
This will create a ``requirements.txt`` file, which contains a simple
|
This will create a ``requirements.txt`` file, which contains a simple
|
||||||
list of all the packages in the current environment, and their respective
|
list of all the packages in the current environment, and their respective
|
||||||
@@ -186,7 +186,7 @@ versions by running
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
pip install -r requirements.txt
|
$ pip install -r requirements.txt
|
||||||
|
|
||||||
This can help ensure consistency across installations, across deployments,
|
This can help ensure consistency across installations, across deployments,
|
||||||
and across developers.
|
and across developers.
|
||||||
@@ -201,14 +201,14 @@ virtualenvwrapper
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
pip install virtualenvwrapper
|
$ pip install virtualenvwrapper
|
||||||
|
|
||||||
|
|
||||||
Put this into your `~/.bash_profile` (Linux/Mac) file:
|
Put this into your `~/.bash_profile` (Linux/Mac) file:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
|
$ export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
|
||||||
|
|
||||||
This will prevent your virtualenvs from relying on your (global) site packages directory, so that they are completely separate..
|
This will prevent your virtualenvs from relying on your (global) site packages directory, so that they are completely separate..
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ IPython
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
pip install ipython
|
$ pip install ipython
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -237,6 +237,6 @@ BPython
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
pip install bpython
|
$ pip install bpython
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user