我正在使用win7和aptana3 / pydev开发一个django项目。我有一个名为mytest的项目,我正在尝试将名为'django-mailbox'的应用程序导入我的项目(http://django-mailbox.readthedocs.org/en/latest/topics/installation.html)
按照我执行的指示:
~tools/virtualenvs/mytest
$ pip install django-mailbox
Downloading/unpacking django-mailbox
Downloading django-mailbox-3.0.2.tar.gz
Running setup.py egg_info for package django-mailbox
Downloading/unpacking six (from django-mailbox)
Downloading six-1.4.1.tar.gz
Running setup.py egg_info for package six
Installing collected packages: django-mailbox, six
Running setup.py install for django-mailbox
Running setup.py install for six
Successfully installed django-mailbox six
Cleaning up...
我还补充说:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_mailbox',
到我的settings.py文件。
我原本希望在'mytest'目录中看到'django_mailbox'目录,但事实并非如此。发生了什么事,它在哪里?
编辑:
我的目录结构是:
|-development
|---projects
|---tools
|-----PortableGit
|-----Portablepython - ( actually installed in here ) ( Global files ? )
|-----Virtalenvs
|--------mytest ( I thought it should be installed here )
|--------otherfile
/development/tools/virtualenvs/mytest
$ find ./ -type d | sed -e 's/[^-][^\/]*\//--/g;s/--/ |-/'
|-
|-mytest
|-chat1
|-Lib
|---encodings
|---site-packages
|-----setuptools
|-------command
|-------tests
|-------_backport
|---------hashlib
|-----_markerlib
|-----setuptools-0.9.8-py2.7.egg-info
|-----pip
|-------backwardcompat
|-------commands
|-------vcs
|-------vendor
|---------distlib
|-----------_backport
|---------html5lib
|-----------filters
|-----------serializer
|-----------treebuilders
|-----------treewalkers
|-----------trie
|-----pip-1.4.1-py2.7.egg-info
|---distutils
|-Include
|---pygame
|---pycairo
|---pygtk-2.0
|-----pygtk
|-Scripts
答案 0 :(得分:3)
在virtualenv
中,它的存储方式非常类似于软件包的Python安装。
<path_to_virtualenv>/lib/python2.7/site-packages/