0
でダウンロードしたパッケージをインストールすることはできませんし、私は私のvirtualenvの中でsetup.py installをのpythonでそれをインストールしたいは、私は、リポジトリ<a href="https://github.com/jklaiho/django-class-fixtures" rel="nofollow">Django class fixtures</a>をダウンロードしたvirtualenvの
(test)/tmp/django-class-fixtures $ cdvirtualenv
(test)/home/kuba/.virtualenvs/test $ cd lib/python2.7/site-packages
(test)/home/kuba/.virtualenvs/test/lib/python2.7/site-packages $ ls
django PIL
Django-1.4-py2.7.egg-info PIL.pth
django_class_fixtures-0.8-py2.7.egg pip-1.1-py2.7.egg
easy-install.pth setuptools-0.6c11-py2.7.egg
IPython setuptools.pth
ipython-0.12-py2.7.egg-info
(test)/home/kuba/.virtualenvs/test/lib/python2.7/site-packages $
何か問題がありますか?
編集: 私は例えばシェルからclass_fixturesをインポートする:
(test)/home/kuba/.virtualenvs/test/lib/python2.7/site-packages $ ipython
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
Type "copyright", "credits" or "license" for more information.
IPython 0.11 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import class_fixtures
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/kuba/.virtualenvs/test/lib/python2.7/site-packages/<ipython-input-1-6a049da89661> in <module>()
----> 1 import class_fixtures
ImportError: No module named class_fixtures
In [2]:
は、あなたがより多くのものを期待します:
IPythonは、サイトのパッケージを認識
~/.ipython/profile_default/startup/00-virtualenv.py
か、似たような名前のファイルには、このようなものを置くために取得するには? – mensi私はシェルでclass_fixturesをインポートできると期待しています - 私は質問を更新しました – mrbox
モジュールは 'django_class_fixtures'と呼ばれています – mensi