What does this mean in the pyqtgraph installation description on http://www.pyqtgraph.org/: "All that is needed is for the pyqtgraph folder to be placed someplace importable."
So I donwloaded the .deb file for Ubuntu and now where should I put it?
I tried to move the .deb file into /urs/lib/python2.7
but i still get from python: "ImportError: No module named pyqtgraph"
The same if I extract the .deb file and then I move to the same location the folder I got from the extraction.
I get this if I print sys.path from python:
/usr/lib/python2.7
/usr/lib/python2.7/plat-i386-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PILcompat
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.7
/usr/lib/python2.7/dist-packages/ubuntu-sso-client
What should I do? Thanks!
答案 0 :(得分:5)
为了安装pyqtgraph,我会使用pip包管理器。
只需在命令行中运行:
sudo apt-get install python-pip
sudo pip install pyqtgraph
答案 1 :(得分:1)
Using the terminal, you have to install the .deb
package by first using cd
to go to where the .deb
package is located (probably in ~/Downloads
) and then running the following command:
sudo dpkg -i python-pyqtgraph_0.9.10-1_all.deb
答案 2 :(得分:0)
又一种方法: http://www.pyqtgraph.org/documentation/installation.html引用添加
deb http://luke.campagnola.me/debian dev/
到你的/etc/apt/sources.list文件。
之后:
sudo apt-get update
然后
sudo apt-get install python-pyqtgraph
。
虽然apt-get只是dpkg的前端,但apt-get可能会检查依赖项。我还没有弄清楚apt-get检查这些依赖关系的机制,所以这是一个非标准的回购链接,我不确定它们的检查效果如何,它给了我一个更温暖的模糊使用apt-get,无论是否有保证。当然,有很多证据表明使用pip作为@Federico的优点和缺点。