Installing pybluez using pip3 - python

i am trying to install pybluez package using pip3. but i always get the following error, when I write to terminal "pip3 install pybluez"
Command "/usr/local/opt/python3/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/_r/vshyh8x51h59xl0nks7jtz280000gn/T/pip-build-2gek1vzy/pybluez/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/_r/vshyh8x51h59xl0nks7jtz280000gn/T/pip-jiy18qdr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/_r/vshyh8x51h59xl0nks7jtz280000gn/T/pip-build-2gek1vzy/pybluez/
So far I have only found that upgrading the 'setuptools' might help, but it did not. I have also installed xcode to my mac. So does anyone have any suggestions ?
Thanks in advance!

In the Ubuntu system, you might want to try using:
sudo apt-get install libbluetoothdev

Related

I am trying to install kivy but pip is giving me this error

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9rd60o0h/kivy/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-h2wevr4m-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-9rd60o0h/kivy/
Error code 1 is "permission denied" - most likely, as you're on Ubuntu, I'd guess you're trying to install the module globally. Either
pip install --user kivy to install is into your user's local environment, or
sudo pip install kivy to install it globally, as root

Installing Scipy for Windows

I am trying to install Scipy on my computer. I did it by using the command pip install Scipy. (pip & numpy are up-to-date and I am using Python 3.6) I also tried it with Pycharm, but it didn't worked either.
I always do get this Error:
Command
"c:\users***\appdata\local\programs\python\python36\python.exe -u -c
"import setuptools,
tokenize;file='C:\Users\***\AppData\Local\Temp\pip-build-x3s21920\scipy\setup.py';f=getattr(tokenize,
'open', open)(file);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, file, 'exec'))" install
--record C:\Users***\AppData\Local\Temp\pip-gr9ppj_q-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users***\AppData\Local\Temp\pip-build-x3s21920\scipy\
Does anyone has an idea of what I can do?
Try to install it from the following binaries
http://www.lfd.uci.edu/~gohlke/pythonlibs/
These are unofficial precompiled binaries

can't install mysql-connector on Python 3.5.3 with pip3

I have successfully installed mysql-connector using 'pip install mysql-connector', however it installs to the Mac OSX standard version of Python (2.7).
I need it installed to my latest version of Python (3.5.3).
When I use 'pip3 install mysql-connector' or 'pip3 install --allow-external mysql-connector mysql-connector' I get the following errors:
Error 1:
Failed building wheel for mysql-connector
Error 2:
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/ch/vzgxn0n119zggbgnb0_vg5400000gn/T/pip-build-po0zonwm/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/ch/vzgxn0n119zggbgnb0_vg5400000gn/T/pip-q6b3vmy3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/ch/vzgxn0n119zggbgnb0_vg5400000gn/T/pip-build-po0zonwm/mysql-connector/
Does anyone know how to resolve this problem? I don't want to have to switch back to Python 2.7.
Thanks.
This will do the thing:
pip3 install mysql-connector-python

Fail to install objccheckstyle using pip in Mac OS X

I'm trying to install objccheckstyle with this command:
sudo pip install objccheckstyle
But it fails after it says
Running setup.py install for lxml
and I get this error:
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-DsaKIL/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CFc6EG-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-DsaKIL/lxml
I also tried sudo pip install lxml, but it looks like it fails when tries to import libxml:
#include "libxml/xmlversion.h"
I don't find libxml with pip install. What could I be missing?
Thanks
Updating to the latest Xcode's command line tools solved the problem.

pip install pandas error

Hi all i typed pip install pandas but i kept getting this error.
Cleaning up...
Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\use
rs\\huihui\\appdata\\local\\temp\\pip_build_HuiHui\\pandas\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --record c:\users\huihui\appdata\local\temp\pip-ecokb6-re
cord\install-record.txt --single-version-externally-managed --compile failed wit
h error code 1 in c:\users\huihui\appdata\local\temp\pip_build_HuiHui\pandas
Storing debug log for failure in C:\Users\HuiHui\pip\pip.log
can anyone shed some light on this?
pip will try to install from source and I deduce from the C: that you are on windows - as such you probably don't have the compiler(s) needed to build pandas. You should download install the appropriate windows installer from https://pypi.python.org/pypi/pandas instead.

Categories

Resources