Pybluez installieren auf Pycharm?
Hallo,
ich hatte bereits diese Frage schonmal gestellt aber die Antworten wurde ein bisschen durcheinander.
Ich möchte die Erweiterung Pybluez installieren.
Dafür habe ich Pycharm als Entwicklungsumgebung.
Wie kann ich es denn jetzt installieren? Mit pip install pyblue kommt folgene Fehlermeldung: (die Fehlermeldung ist in der Antwort, hatte zu viele Zeichen)
You should consider upgrading via the 'G:\Heruntergeladen\Programmieren\Neuer Ordner\python.exe -m pip install --upgrade pip' command.
Danke schonmal für alle Antworten!
2 Antworten
ERROR: Command errored out with exit status 1:
command: 'G:\Heruntergeladen\Programmieren\Neuer Ordner\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-tvri9xej\\pybluez_d210b40018de4f4d9d1578a2fbeac246\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-tvri9xej\\pybluez_d210b40018de4f4d9d1578a2fbeac246\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-0ylqocb2\install-record.txt' --single-version-externally-managed --compile --install-headers 'G:\Heruntergeladen\Programmieren\Neuer Ordner\Include\pybluez'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-tvri9xej\pybluez_d210b40018de4f4d9d1578a2fbeac246\
Complete output (28 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\bluetooth
copying bluetooth\ble.py -> build\lib.win-amd64-3.10\bluetooth
copying bluetooth\bluez.py -> build\lib.win-amd64-3.10\bluetooth
copying bluetooth\btcommon.py -> build\lib.win-amd64-3.10\bluetooth
copying bluetooth\macos.py -> build\lib.win-amd64-3.10\bluetooth
copying bluetooth\msbt.py -> build\lib.win-amd64-3.10\bluetooth
copying bluetooth\widcomm.py -> build\lib.win-amd64-3.10\bluetooth
copying bluetooth\__init__.py -> build\lib.win-amd64-3.10\bluetooth
G:\Heruntergeladen\Programmieren\Neuer Ordner\lib\site-packages\setuptools\lib2to3_ex.py:36: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.
warnings.warn(
Fixing build\lib.win-amd64-3.10\bluetooth\ble.py build\lib.win-amd64-3.10\bluetooth\bluez.py build\lib.win-amd64-3.10\bluetooth\btcommon.py build\lib.win-amd64-3.10\bluetooth\macos.py build\lib.win-amd64-3.10\bluetooth\msbt.py build\lib.win-amd64-3.10\bluetooth\widcomm.py build\lib.win-amd64-3.10\bluetooth\__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
Fixing build\lib.win-amd64-3.10\bluetooth\ble.py build\lib.win-amd64-3.10\bluetooth\bluez.py build\lib.win-amd64-3.10\bluetooth\btcommon.py build\lib.win-amd64-3.10\bluetooth\macos.py build\lib.win-amd64-3.10\bluetooth\msbt.py build\lib.win-amd64-3.10\bluetooth\widcomm.py build\lib.win-amd64-3.10\bluetooth\__init__.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
building 'bluetooth._msbt' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'G:\Heruntergeladen\Programmieren\Neuer Ordner\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-tvri9xej\\pybluez_d210b40018de4f4d9d1578a2fbeac246\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-tvri9xej\\pybluez_d210b40018de4f4d9d1578a2fbeac246\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-0ylqocb2\install-record.txt' --single-version-externally-managed --compile --install-headers 'G:\Heruntergeladen\Programmieren\Neuer Ordner\Include\pybluez' Check the logs for full command output.
WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available.
Hast du eine Lösung gefunden?
Ich sitze momentan genau an dem gleichen Problem. Bin mir nicht sicher ob es funktioniert, da PyblueZ vllt nur bis Python 3.3 aktiv ist.
Tut mir Leid für die späte Antwort,
nein leider nicht. Ich habe mir jetzt Anaconda von folgender Website runtergeladen: https://www.anaconda.com/products/individual
Dort geht das herunterladen von erweiterungen anders(Ich bin mit pip echt verzweifelt)
Ich hoffe ich konnte dir helfen!