11.10에서 Python3.2를 사용하도록 IPython을 설치하고 구성하는 방법은 무엇입니까?


14

11.10에서 Python3.2를 사용하도록 IPython을 설치하고 구성하는 방법은 무엇입니까? 설치하여 확인했습니다

sudo apt-get install ipython

사용 python2.7합니다.

[편집 1]

$ sudo python3 configure.py
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.8.5 (licensed under the GNU General Public
License) for Python 3.2.2 on linux2.

Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDeclarative module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the phonon module should be built...
Checking to see if the QtAssistant module should be built...
Checking to see if the QtDesigner module should be built...
Checking to see if the dbus support module should be built...
DBus v1 does not seem to be installed.
Qt v4.7.4 free edition is being used.
SIP 4.12.4 is being used.
The Qt header files are in /usr/include/qt4.
The shared Qt libraries are in /usr/lib/i386-linux-gnu.
The Qt binaries are in /usr/bin.
The Qt mkspecs directory is in /usr/share/qt4.
These PyQt modules will be built: QtCore, QtHelp, QtNetwork, QtDeclarative,
QtScript, QtScriptTools, QtSvg, QtTest, QtWebKit, QtXml, QtXmlPatterns,
QtDesigner.
The PyQt Python package will be installed in /usr/lib/python3/dist-packages.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in
/usr/lib/i386-linux-gnu/qt4/plugins/designer.
The PyQt .sip files will be installed in /usr/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin.
Generating the C++ source for the QtCore module...
sh: /usr/bin/sip: not found
Error: Unable to create the C++ code.
$ which sip
$ sudo apt-get install sip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package sip
$

당신은 11.10을 의미합니까
wim

예. 제목이 수정되었습니다.
qazwsx 2019

몸에 없습니다. : : P
wim

이제 수정되었습니다.
qazwsx

답변:


11

pip3ipython을 설치 하는 데 사용할 수 있습니다 .

sudo apt-get install python3-pip
sudo pip3 install ipython

2
pip3나에게 ipython3명령을 주지 않습니다 . 내가 넣어 python3 /usr/local/lib/python3.3/site-packages/IPython/__main__.py에서 /usr/local/bin/ipython3그것을 처리하기 위해 자신.
kqw

pip3를 설치하는 방법?
qazwsx 2016 년

그 결과 E: Unable to locate package pip3.
qazwsx

올바른 명령은sudo apt-get install python3-pip
Bar

저에게는이 명령이 ipython기본적으로 Python 3으로 설정되어 있지만 이전에는 Python 2였습니다. 알아야 할 것.
Kurt Peek


2

Julian Taylor는 IPython을위한 PPA를 보유하고 있습니다.

IPython 안정 (ppa : jtaylor / ipython)

IPython nightlies (ppa : jtaylor / ipython-dev)

oneiric의 경우, ipython3이들 중 하나 에서 설치 하면 표준 터미널 IPython을 얻게됩니다. Qt 콘솔과 HTML 노트북은 모두 Python 3에서 작동하지만 일부 종속성을 설치해야합니다. IPython 위키에 대한 지침 이 있습니다 .


여기의 지시 사항을 따르면 $ python3 configure.py python3: can't open file 'configure.py': [Errno 2] No such file or directory어디 configure.py입니까?
qazwsx

@ user6076 : 그렇게하면 apt-get source python-qt4python-qt4 -... 디렉토리가 생성 cd됩니다. 이것을 명확히하기 위해 위키를 업데이트했습니다.
Thomas K

sip찾을 수 없기 때문에 여전히 작동 하지 않습니다. 원래 게시물을 참조하십시오.
qazwsx 2013

@ user6076 : 설치 python3-sip-dev했습니까? 당신도 필요할 수 있습니다 python-sip-dev. 없이는 시도하지 않았습니다.
Thomas K
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.