[英]Pip install error (Pyside to Raspberry Pi)
I'm trying to pip install pyside
to my Raspberry Pi and receive the following error: 我试图
pip install pyside
到我的Raspberry Pi上,并收到以下错误:
pi@raspberrypi:/ $ sudo pip install pyside
Collecting pyside
Using cached https://files.pythonhosted.org/packages/36/ac/ca31db6f2225844d37a41b10615c3d371587677efd074db29855e7035de6/PySide-1.2.4.tar.gz
Building wheels for collected packages: pyside
Running setup.py bdist_wheel for pyside ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-TXwQwt/pyside/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmps80BMupip-wheel- --python-tag cp27:
Removing /tmp/pip-build-TXwQwt/pyside/pyside_package
running bdist_wheel
running build
Python architecture is 32bit
error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.
----------------------------------------
Failed building wheel for pyside
Running setup.py clean for pyside
Failed to build pyside
Installing collected packages: pyside
Running setup.py install for pyside ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-TXwQwt/pyside/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5BdNE7-record/install-record.txt --single-version-externally-managed --compile:
Removing /tmp/pip-build-TXwQwt/pyside/pyside_package
running install
running build
Python architecture is 32bit
error: Failed to find cmake. Please specify the path to cmake with --cmake parameter.
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-TXwQwt/pyside/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5BdNE7-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-TXwQwt/pyside/
pi@raspberrypi:/ $
I've tried fixing it with sudo pip install setuptools --no-use-wheel --upgrade
, sudo apt install -y libmysqlclient-dev
, python setup.py install
, and sudo pip install --upgrade setuptools
but none have worked to allow me to install Pyside. 我试过使用
sudo pip install setuptools --no-use-wheel --upgrade
, sudo apt install -y libmysqlclient-dev
, python setup.py install
和sudo pip install --upgrade setuptools
但没有一个请允许我安装Pyside。 Any help would be much appreciated. 任何帮助将非常感激。 Thank you.
谢谢。
I'm running Raspbian Stretch on a raspberry pi 3 if that matters. 如果这很重要,我将在树莓派3上运行Raspbian Stretch。
You can try precompiled wheels from https://www.piwheels.org/ 您可以从https://www.piwheels.org/尝试预编译的车轮
There are no pyside binary wheels for Pi so you need to install a lot of prerequisites and compiles from sources: Pi没有pyside二进制轮子,因此您需要安装许多先决条件并从源代码进行编译:
sudo apt-get install build-essential git cmake libqt4-dev libphonon-dev python2.7-dev libxml2-dev libxslt1-dev qtmobility-dev libqtwebkit-dev
您正在使用哪个python版本,因为此模块仅支持下面列出的版本。
[(2.6), (2.7), (3.2), (3.3), (3.4)]
It looks self explanatory. 它看起来很自我解释。
You are installing the module on an unsupported version of python. 您正在不支持的python版本上安装模块。
try installing with pip2 install pyside
尝试使用
pip2 install pyside
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.