Courage is
resistance to fear, mastery of fear—not absence
of fear. Except
a creature be part coward, it is not a
compliment to
say it is brave; it is merely a loose
misapplication
of the word. Consider the flea!—incomparably
the bravest of
all the creatures of God, if ignorance of
fear were
courage. Whether you are asleep or awake he will
attack you,
caring nothing for the fact that in bulk and
strength you
are to him as are the massed armies of the
earth to a
sucking child; he lives both day and night and
all days and
nights in the very lap of peril and the
immediate
presence of death, and yet is no more afraid than
is the man who
walks the streets of a city that was
threatened by
an earthquake ten centuries before. When we
speak of Clive,
Nelson, and Putnam as men who "didn't know
what fear was,"
we ought always to add the flea—and put him
at the head of
the procession.
— Pudd'nhead
Wilson's Calendar
Незаменимые
инструменты любого приличного питониста
— pip и virtualenv. Краткая информация для
входа в тему:
pip is a tool
for installing packages from the Python Package Index.
virtualenv is a
tool for creating isolated Python environments containing their own
copy of python, pip, and their own place to keep libraries installed
from PyPI.
It's designed to
allow you to work on multiple projects with different dependencies at
the same time on the same machine.
You can see
instructions for installing it at virtualenv.org.
After installing
it, run virtualenv env to create a new environment inside a directory
called env.
You'll need one
of these environments for each of your projects. Make sure you
exclude these directories from your version control system.
To use the
versions of python and pip inside the environment, type
env/bin/python and env/bin/pip respectively.
You can
"activate" an environment with source env/bin/activate and
deactivate one with deactivate. This is entirely optional but might
make life a little easier.
Статья объясняет
– что это, зачем это и какие проблемы
это решает.
original post http://vasnake.blogspot.com/2013/09/pip-virtualenv.html
Комментариев нет:
Отправить комментарий