Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>yes! you should be using pip as your python package manager ( <a href="http://pypi.python.org/pypi/pip" rel="nofollow">http://pypi.python.org/pypi/pip</a> )</p> <p>with pip installed packages, you can do a </p> <pre><code>pip freeze </code></pre> <p>and it will list all installed packages. You should probably also be using <a href="http://pypi.python.org/pypi/virtualenv" rel="nofollow">virtualenv</a> and <a href="http://pypi.python.org/pypi/virtualenvwrapper" rel="nofollow">virtualenvwrapper</a>. When you start a new project, you can do </p> <pre><code>mkvirtualenv my_new_project </code></pre> <p>and then (inside that virtualenv), do</p> <pre><code>pip install all_your_stuff </code></pre> <p>This way, you can <code>workon my_new_project</code> and then <code>pip freeze</code> to see which packages are installed for that virtualenv/project. </p> <p>for example:</p> <pre><code>➜ ~ mkvirtualenv yo_dude New python executable in yo_dude/bin/python Installing setuptools............done. Installing pip...............done. virtualenvwrapper.user_scripts creating /Users/aaylward/dev/virtualenvs/yo_dude/bin/predeactivate virtualenvwrapper.user_scripts creating /Users/aaylward/dev/virtualenvs/yo_dude/bin/postdeactivate virtualenvwrapper.user_scripts creating /Users/aaylward/dev/virtualenvs/yo_dude/bin/preactivate virtualenvwrapper.user_scripts creating /Users/aaylward/dev/virtualenvs/yo_dude/bin/postactivate virtualenvwrapper.user_scripts creating /Users/aaylward/dev/virtualenvs/yo_dude/bin/get_env_details (yo_dude)➜ ~ pip install django Downloading/unpacking django Downloading Django-1.4.1.tar.gz (7.7Mb): 7.7Mb downloaded Running setup.py egg_info for package django Installing collected packages: django Running setup.py install for django changing mode of build/scripts-2.7/django-admin.py from 644 to 755 changing mode of /Users/aaylward/dev/virtualenvs/yo_dude/bin/django-admin.py to 755 Successfully installed django Cleaning up... (yo_dude)➜ ~ pip freeze Django==1.4.1 wsgiref==0.1.2 (yo_dude)➜ ~ </code></pre> <p>or if you have a python package with a requirements.pip file,</p> <pre><code>mkvirtualenv my_awesome_project pip install -r requirements.pip pip freeze </code></pre> <p>will do the trick</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload