我继承了virtualenv,需要帮助使其在MacOSX上运行。没有提供任何文档,所以我不确定它是否完整,但是需要帮助才能进行。我需要帮助以确保virtualenv包含所有依赖项,数据库等。
项目应为: Python 2.7 Django 1.3 PostgreSQL
希望我可以通过以下方式激活virtualenv:
$ cd app
$ source bin/activate
但是,看起来好像不是在virtualenv中使用Python:
$ which python
/usr/bin/python
我也尝试过:
echo $PATH
/virtualenv/app/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
$ pip冻结列出了全局软件包,而不是来自virtualenv内部的软件包
谢谢。
这是virtualenv中包含的目录和文件:
|-app
|---bin
|---include
|-----python2.7
|---lib
|-----Django-1.3
|-------django
|---------bin
|-----------profiling
|---------conf
|-----------app_template
|-----------locale
|-----------project_template
|-----------urls
|---------contrib
|-----------admin
|-------------locale
|-------------media
|---------------css
|---------------img
|-----------------admin
|-----------------gis
|---------------js
|-----------------admin
|-------------templates
|---------------admin
|-----------------auth
|-------------------user
|-----------------edit_inline
|-----------------includes
|---------------registration
|-------------templatetags
|-------------views
|-----------admindocs
|-------------locale
|-------------templates
|---------------admin_doc
|-------------tests
|-----------auth
|-------------fixtures
|-------------handlers
|-------------locale
|-------------management
|---------------commands
|-------------tests
|---------------templates
|-----------------registration
|-----------comments
|-------------locale
|-------------templates
|---------------comments
|-------------templatetags
|-------------views
|-----------contenttypes
|-------------locale
|-----------csrf
|-----------databrowse
|-------------plugins
|-------------templates
|---------------databrowse
|-----------flatpages
|-------------fixtures
|-------------locale
|-------------templatetags
|-------------tests
|---------------templates
|-----------------flatpages
|-----------------registration
|-----------formtools
|-------------locale
|-------------templates
|---------------formtools
|-------------tests
|---------------templates
|-----------------formwizard
|-----------gis
|-------------admin
|-------------db
|---------------backend
|---------------backends
|-----------------mysql
|-----------------oracle
|-----------------postgis
|-----------------spatialite
|---------------models
|-----------------sql
|-------------forms
|-------------gdal
|---------------prototypes
|---------------tests
|-------------geometry
|---------------backend
|-------------geos
|---------------prototypes
|---------------tests
|-------------locale
|-------------management
|---------------commands
|-------------maps
|---------------google
|---------------openlayers
|-------------sitemaps
|-------------templates
|---------------gis
|-----------------admin
|-----------------google
|-----------------kml
|-----------------sitemaps
|-------------utils
|-----------humanize
|-------------templatetags
|-----------localflavor
|-----------markup
|-------------templatetags
|-----------messages
|-------------locale
|-------------storage
|-------------tests
|-----------redirects
|-------------locale
|-----------sessions
|-------------backends
|-------------locale
|-----------sitemaps
|-------------management
|---------------commands
|-------------templates
|-------------tests
|---------------templates
|-----------sites
|-------------locale
|-----------staticfiles
|-------------management
|---------------commands
|-----------syndication
|-----------webdesign
|-------------templatetags
|---------core
|-----------cache
|-------------backends
|-----------files
|-----------handlers
|-----------mail
|-------------backends
|-----------management
|-------------commands
|-----------serializers
|-----------servers
|---------db
|-----------backends
|-------------dummy
|-------------mysql
|-------------oracle
|-------------postgresql
|-------------postgresql_psycopg2
|-------------sqlite3
|-----------models
|-------------fields
|-------------sql
|---------dispatch
|---------forms
|-----------extras
|---------http
|---------middleware
|---------shortcuts
|---------template
|-----------loaders
|---------templatetags
|---------test
|---------utils
|-----------simplejson
|-----------translation
|-----------unittest
|---------views
|-----------decorators
|-----------generic
|-------docs
|---------_ext
|---------_theme
|-----------djangodocs
|-------------static
|---------faq
|---------howto
|-----------deployment
|---------internals
|-----------_images
|---------intro
|-----------_images
|---------man
|---------misc
|---------obsolete
|-----------_images
|---------ref
|-----------contrib
|-------------admin
|---------------_images
|-------------comments
|-------------formtools
|-------------gis
|-----------files
|-----------forms
|-----------models
|-----------templates
|---------releases
|---------topics
|-----------db
|-----------forms
|-----------http
|-------------_images
|-----------i18n
|-------extras
|-------scripts
|-------tests
|---------modeltests
|-----------aggregation
|-------------fixtures
|-----------basic
|-----------choices
|-----------custom_columns
|-----------custom_managers
|-----------custom_methods
|-----------custom_pk
|-----------defer
|-----------delete
|-----------empty
|-----------expressions
|-----------field_defaults
|-----------field_subclassing
|-----------files
|-----------fixtures
|-------------fixtures
|-----------fixtures_model_package
|-------------fixtures
|-------------models
|-----------force_insert_update
|-----------generic_relations
|-----------get_latest
|-----------get_object_or_404
|-----------get_or_create
|-----------invalid_models
|-----------lookup
|-----------m2m_and_m2o
|-----------m2m_intermediary
|-----------m2m_multiple
|-----------m2m_recursive
|-----------m2m_signals
|-----------m2m_through
|-----------m2o_recursive
|-----------many_to_many
|-----------many_to_one
|-----------many_to_one_null
|-----------model_forms
|-----------model_formsets
|-----------model_inheritance
|-----------model_inheritance_same_model_name
|-----------model_package
|-------------models
|-----------mutually_referential
|-----------one_to_one
|-----------or_lookups
|-----------order_with_respect_to
|-----------ordering
|-----------pagination
|-----------properties
|-----------proxy_model_inheritance
|-------------app1
|-------------app2
|-----------proxy_models
|-------------fixtures
|-----------raw_query
|-------------fixtures
|-----------reserved_names
|-----------reverse_lookup
|-----------save_delete_hooks
|-----------select_related
|-----------serializers
|-----------signals
|-----------str
|-----------test_client
|-------------fixtures
|-----------transactions
|-----------unmanaged_models
|-----------update
|-----------user_commands
|-------------management
|---------------commands
|-----------validation
|-----------validators
|---------regressiontests
|---------templates
|-----------comments
|-----------custom_admin
|-----------views
|-----python2.7
|-------config
|-------distutils
|-------encodings
|-------lib-dynload
|-------site-packages
|---------Django-1.3.7-py2.7.egg-info
|---------MySQLdb
|-----------constants
|---------PIL
|---------_markerlib
|---------django-
|-----------bin
|-------------profiling
|-----------conf
|-------------app_template
|-------------locale
|-------------project_template
|-------------urls
|-----------contrib
|-------------admin
|---------------locale
|---------------media
|-----------------css
|-----------------img
|-------------------admin
|-------------------gis
|-----------------js
|-------------------admin
|---------------templates
|-----------------admin
|-------------------auth
|---------------------user
|-------------------edit_inline
|-------------------includes
|-----------------registration
|---------------templatetags
|---------------views
|-------------admindocs
|---------------locale
|---------------templates
|-----------------admin_doc
|---------------tests
|-------------auth
|---------------fixtures
|---------------handlers
|---------------locale
|---------------management
|-----------------commands
|---------------tests
|-----------------templates
|-------------------registration
|-------------comments
|---------------locale
|---------------templates
|-----------------comments
|---------------templatetags
|---------------views
|-------------contenttypes
|---------------locale
|-------------csrf
|-------------databrowse
|---------------plugins
|---------------templates
|-----------------databrowse
|-------------flatpages
|---------------fixtures
|---------------locale
|---------------templatetags
|---------------tests
|-----------------templates
|-------------------flatpages
|-------------------registration
|-------------formtools
|---------------locale
|---------------templates
|-----------------formtools
|---------------tests
|-----------------templates
|-------------------formwizard
|-------------gis
|---------------admin
|---------------db
|-----------------backend
|-----------------backends
|-------------------mysql
|-------------------oracle
|-------------------postgis
|-------------------spatialite
|-----------------models
|-------------------sql
|---------------forms
|---------------gdal
|-----------------prototypes
|-----------------tests
|---------------geometry
|-----------------backend
|---------------geos
|-----------------prototypes
|-----------------tests
|---------------locale
|---------------management
|-----------------commands
|---------------maps
|-----------------google
|-----------------openlayers
|---------------sitemaps
|---------------templates
|-----------------gis
|-------------------admin
|-------------------google
|-------------------kml
|-------------------sitemaps
|---------------tests
|-----------------data
|-------------------cities
|-------------------counties
|-------------------interstates
|-------------------invalid
|-------------------test_point
|-------------------test_poly
|-------------------test_vrt
|-----------------distapp
|-------------------fixtures
|-----------------geo3d
|-----------------geoapp
|-------------------fixtures
|-----------------geogapp
|-------------------fixtures
|-----------------layermap
|-----------------relatedapp
|-------------------fixtures
|---------------utils
|-------------humanize
|---------------locale
|---------------templatetags
|-------------localflavor
|---------------locale
|-------------markup
|---------------templatetags
|-------------messages
|---------------locale
|---------------storage
|---------------tests
|-------------redirects
|---------------locale
|-------------sessions
|---------------backends
|---------------locale
|-------------sitemaps
|---------------management
|-----------------commands
|---------------templates
|---------------tests
|-----------------templates
|-------------sites
|---------------locale
|-------------staticfiles
|---------------management
|-----------------commands
|-------------syndication
|-------------webdesign
|---------------templatetags
|-----------core
|-------------cache
|---------------backends
|-------------files
|-------------handlers
|-------------mail
|---------------backends
|-------------management
|---------------commands
|-------------serializers
|-------------servers
|-----------db
|-------------backends
|---------------dummy
|---------------mysql
|---------------oracle
|---------------postgresql
|---------------postgresql_psycopg2
|---------------sqlite3
|-------------models
|---------------fields
|---------------sql
|-----------dispatch
|-----------forms
|-------------extras
|-----------http
|-----------middleware
|-----------shortcuts
|-----------template
|-------------loaders
|-----------templatetags
|-----------test
|-----------utils
|-------------simplejson
|-------------translation
|-------------unittest
|-----------views
|-------------decorators
|-------------generic
|---------django-live
|-----------bin
|-------------profiling
|-----------conf
|-------------app_template
|-------------locale
|-------------project_template
|-------------urls
|-----------contrib
|-------------admin
|---------------media
|-----------------css
|-----------------img
|-------------------admin
|-------------------gis
|-----------------js
|-------------------admin
|---------------templates
|-----------------admin
|-------------------auth
|---------------------user
|-------------------edit_inline
|-------------------includes
|-----------------registration
|---------------templatetags
|---------------views
|-------------admindocs
|---------------templates
|-----------------admin_doc
|---------------tests
|-------------auth
|---------------fixtures
|---------------handlers
|---------------management
|-----------------commands
|-------------comments
|---------------templates
|-----------------comments
|---------------templatetags
|---------------views
|-------------contenttypes
|-------------csrf
|-------------databrowse
|---------------plugins
|---------------templates
|-----------------databrowse
|-------------flatpages
|-------------formtools
|---------------templates
|-----------------formtools
|-------------gis
|---------------admin
|---------------db
|-----------------backend
|-----------------backends
|-------------------mysql
|-------------------oracle
|-------------------postgis
|-------------------spatialite
|-----------------models
|-------------------sql
|---------------forms
|---------------gdal
|-----------------prototypes
|-----------------tests
|---------------geometry
|-----------------backend
|---------------geos
|-----------------prototypes
|-----------------tests
|---------------management
|-----------------commands
|---------------maps
|-----------------google
|-----------------openlayers
|---------------sitemaps
|---------------templates
|-----------------gis
|-------------------admin
|-------------------google
|-------------------kml
|-------------------sitemaps
|---------------utils
|-------------humanize
|---------------templatetags
|-------------localflavor
|-------------markup
|---------------templatetags
|-------------messages
|---------------storage
|---------------tests
|-------------redirects
|-------------sessions
|---------------backends
|-------------sitemaps
|---------------management
|-----------------commands
|---------------templates
|-------------sites
|-------------syndication
|-------------webdesign
|---------------templatetags
|-----------core
|-------------cache
|---------------backends
|-------------files
|-------------handlers
|-------------mail
|---------------backends
|-------------management
|---------------commands
|-------------serializers
|-------------servers
|-----------db
|-------------backends
|---------------dummy
|---------------mysql
|---------------oracle
|---------------postgresql
|---------------postgresql_psycopg2
|---------------sqlite3
|-------------models
|---------------fields
|---------------sql
|-----------dispatch
|-----------forms
|-------------extras
|-----------http
|-----------middleware
|-----------shortcuts
|-----------template
|-------------loaders
|-----------templatetags
|-----------test
|-----------utils
|-------------simplejson
|-------------translation
|-----------views
|-------------decorators
|-------------generic
|---------docutils
|-----------languages
|-----------parsers
|-------------rst
|---------------directives
|---------------include
|---------------languages
|-----------readers
|-------------python
|-----------transforms
|-----------writers
|-------------html4css1
|-------------latex2e
|-------------newlatex2e
|-------------odf_odt
|-------------pep_html
|-------------s5_html
|---------------themes
|---------docutils-0.7-py2.6.egg-info
|---------goshkihy
|-----------about
|-------------migrations
|-----------gallery
|-------------migrations
|-----------news
|-------------migrations
|-----------templates
|-------------about
|-------------admin
|---------------menu
|---------gunicorn
|-----------app
|-----------http
|-----------management
|-------------commands
|-----------workers
|---------gunicorn-18.0-py2.7.egg-info
|---------client
|-----------br
|-------------gallery
|-------------memory
|---------------migrations
|---------------templatetags
|-------------utils
|-----------goshkihy
|-------------about
|---------------migrations
|-------------gallery
|---------------migrations
|-------------news
|---------------migrations
|-------------templates
|---------------about
|---------------admin
|-----------------menu
|---------------admin_doc
|---------------employment
|---------------events
|---------------experience
|---------------flatpages
|---------------generic
|---------------menu
|-----------restaurant
|-------------employment
|---------------migrations
|-------------event
|---------------migrations
|-------------location
|---------------migrations
|---------------templatetags
|-------------menu
|---------------migrations
|---------multilingual
|-----------flatpages
|-------------templates
|---------------flatpages
|-------------templatetags
|-----------management
|-------------commands
|-----------media
|-------------multilingual
|---------------admin
|-----------------css
|-----------templates
|-------------admin
|---------------multilingual
|-----------------edit_inline
|-----------templatetags
|---------pip
|-----------backwardcompat
|-----------commands
|-----------vcs
|-----------vendor
|-------------distlib
|---------------_backport
|-------------html5lib
|---------pip-0.8.1-py2.6.egg
|-----------EGG-INFO
|-----------pip
|-------------commands
|-------------vcs
|---------pip-1.4.1-py2.7.egg-info
|---------psycopg2
|---------psycopg2--
|---------psycopg2-2.0.10-py2.7.egg-info
|---------restaurant
|-----------employment
|-------------migrations
|-----------event
|-------------migrations
|-----------location
|-------------migrations
|-------------templatetags
|-----------menu
|-------------migrations
|---------setuptools
|-----------_backport
|-------------hashlib
|-----------command
|-----------tests
|---------setuptools-0.9.8-py2.7.egg-info
|---------south
|-----------creator
|-----------db
|-------------sql_server
|-----------hacks
|-----------introspection_plugins
|-----------management
|-------------commands
|-----------migration
|---run
|-bin
|-docs
|---_theme
|-----nature
|-------static
|-scripts
|-virtualenv.egg-info
|-virtualenv_embedded
|-virtualenv_support