이 ipython 버전을 설치하려고합니다. 사실상 그의 필요에 따라 빌드 아웃을 사용하는 장고 스타터 프로젝트가 있습니다. 그리고 그 스크립트는 easy_install과 함께 ipython 0.11을 얻으려고했습니다.이 패키지에서 모든 것을 grep하려고했지만 ipython이 전혀 없습니다. 그래서 ipython0.11이 필요한 최신 버전을 설치할 수 없습니다. =)FreeBSD 9에서 python sqlite3 오류가 발생했습니다.
roman# easy_install "ipython==0.11" > errors
Traceback (most recent call last):
File "/usr/local/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 1712, in main
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 1716, in <lambda>
File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 211, in run
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 446, in easy_install
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 476, in install_item
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 919, in run_setup
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/sandbox.py", line 62, in run_setup
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/sandbox.py", line 105, in run
File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/sandbox.py", line 64, in <lambda>
File "setup.py", line 54, in <module>
File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/__init__.py", line 46, in <module>
File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/frontend/terminal/embed.py", line 32, in <module>
File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/frontend/terminal/interactiveshell.py", line 26, in <module>
File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/core/interactiveshell.py", line 36, in <module>
File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/core/history.py", line 20, in <module>
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 85, in <module>
register_adapters_and_converters()
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 80, in register_adapters_and_converters
register_adapter(datetime.date, adapt_date)
NameError: global name 'register_adapter' is not defined
가 업데이트하십시오 : 파이썬 콘솔에서 sqlite3를 가져 오기
이 오류 제공 : 당신의 오류 메시지와 코멘트에 우리의 교환으로 판단
>>> import sqlite3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 85, in <module>
register_adapters_and_converters()
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 80, in register_adapters_and_converters
register_adapter(datetime.date, adapt_date)
NameError: global name 'register_adapter' is not defined
는'sqlite3' 것 같은데. 'python'과'import sqlite3'을 실행하고'sqlite3.register_adapter'를 시도 할 수 있습니까? 또는 더 기본적으로 명령 줄에서이 작업을 수행하면 어떻게됩니까? 'python2.7 -c 'import sqlite3'' – birryree
ok birryree =) 당신이 가지고있는 바로 import sqlite3은 전혀 작동하지 않습니다 .. – holms
그러면 sqlite3 바인딩을 설치해야합니다 - 내 대답을 확인하고 더 많은 도움이 필요하면 알으십시오. – birryree