Jeg kan ikke installere PyBluez på PyCharm Windows 10

Indlæg af Hanne Mølgaard Plasc

Problem



Jeg har den sidste PyCharm-version, og jeg bruger Python 3.6.1


Når jeg prøver at installere en PyBluez 0,22, får jeg en fejlmeddelelse


Her er mine fejl detaljer:


Collecting PyBluez
  Using cached PyBluez-0.22.zip
Installing collected packages: PyBluez
  Running setup.py install for PyBluez: started
    Running setup.py install for PyBluez: finished with status 'error'
    Complete output from command "C:Python 3.6.1python.exe" -u -c "import setuptools, tokenize;\_\_file\_\_='C:\Users\m-grz\AppData\Local\Temp\pycharm-packaging\PyBluez\setup.py';f=getattr(tokenize, 'open', open)(\_\_file\_\_);code=f.read().replace('
', '
');f.close();exec(compile(code, \_\_file\_\_, 'exec'))" install --record C:Usersm-grzAppDataLocalTemppip-eqci78cu-recordinstall-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build\_py
    creating build
    creating buildlib.win32-3.6
    creating buildlib.win32-3.6luetooth
    copying bluetoothle.py -> buildlib.win32-3.6luetooth
    copying bluetoothluez.py -> buildlib.win32-3.6luetooth
    copying bluetoothtcommon.py -> buildlib.win32-3.6luetooth
    copying bluetoothmsbt.py -> buildlib.win32-3.6luetooth
    copying bluetoothosx.py -> buildlib.win32-3.6luetooth
    copying bluetoothwidcomm.py -> buildlib.win32-3.6luetooth
    copying bluetooth\_\_init\_\_.py -> buildlib.win32-3.6luetooth
    warning: build\_py: byte-compiling is disabled, skipping.

    running build\_ext
    building 'bluetooth.\_msbt' extension
    creating build	emp.win32-3.6
    creating build	emp.win32-3.6Release
    creating build	emp.win32-3.6Releasemsbt
    C:Program Files (x86)Microsoft Visual Studio 14.0VCBINcl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:Program Files (x86)Microsoft SDKsWindowsv7.0AInclude" -I.port3 "-IC:Python 3.6.1include" "-IC:Python 3.6.1include" "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.15063.0ucrt" "-IC:Program Files (x86)Windows KitsNETFXSDK4.6.1includeum" "-IC:Program Files (x86)Windows Kits10include10.0.15063.0shared" "-IC:Program Files (x86)Windows Kits10include10.0.15063.0um" "-IC:Program Files (x86)Windows Kits10include10.0.15063.0winrt" /Tcmsbt\_msbt.c /Fobuild	emp.win32-3.6Releasemsbt\_msbt.obj
    \_msbt.c
    msbt\_msbt.c(1): fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
    error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2

    ----------------------------------------

Command ""C:Python 3.6.1python.exe" -u -c "import setuptools, tokenize;\_\_file\_\_='C:\Users\m-grz\AppData\Local\Temp\pycharm-packaging\PyBluez\setup.py';f=getattr(tokenize, 'open', open)(\_\_file\_\_);code=f.read().replace('
', '
');f.close();exec(compile(code, \_\_file\_\_, 'exec'))" install --record C:Usersm-grzAppDataLocalTemppip-eqci78cu-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:Usersm-grzAppDataLocalTemppycharm-packagingPyBluez


Jeg vil være meget taknemmelig for din hjælp!

Bedste reference