djiuser_pu8X2L7zHZMo
lvl.1
Hong Kong
Offline
|
pip install robomasterpy
Collecting robomasterpy
Downloading robomasterpy-0.1.0-py2.py3-none-any.whl (15 kB)
Collecting opencv-contrib-python
Downloading opencv_contrib_python-4.2.0.34-cp36-cp36m-win_amd64.whl (39.5 MB)
|████████████████████████████████| 39.5 MB 6.4 MB/s
Collecting numpy>=1.11.3
Downloading numpy-1.18.5-cp36-cp36m-win_amd64.whl (12.7 MB)
|████████████████████████████████| 12.7 MB 6.8 MB/s
Installing collected packages: numpy, opencv-contrib-python, robomasterpy
WARNING: The script f2py.exe is installed in 'c:\users\fms-lcf.fkssteacher\appdata\local\programs\python\python36\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.18.5 opencv-contrib-python-4.2.0.34 robomasterpy-0.1.0
I got the following errors how to solve that.
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information.
>>> import robomasterpy as rm Traceback (most recent call last): File "<pyshell#0>", line 1, in <module>
import robomasterpy as rm
File "C:\Users\fms-lcf.FKSSTEACHER\AppData\Local\Programs\Python\Python36\lib\site-packages\robomasterpy\__init__.py", line 20, in <module> from . import framework File "C:\Users\fms-lcf.FKSSTEACHER\AppData\Local\Programs\Python\Python36\lib\site-packages\robomasterpy\framework.py", line 21, in <module> from .client import CTX, LOG_LEVEL, PUSH_PORT, GimbalAttitude, ChassisPosition, ChassisAttitude, ChassisStatus, DEFAULT_BUF_SIZE, EVENT_PORT, ARMOR_HIT, ArmorHitEvent, SOUND_APPLAUSE, SoundApplauseEvent, VIDEO_PORT, Commander File "C:\Users\fms-lcf.FKSSTEACHER\AppData\Local\Programs\Python\Python36\lib\site-packages\robomasterpy\client.py", line 15, in <module> from dataclasses import dataclass ModuleNotFoundError: No module named 'dataclasses'
|
|