我正在使用Raspbian linux,并且使用以下命令多次安装了ldtp模块:
pip3 install -u ldtp and
sudo pip3 install ldtp python-ldtp and
sudo aptitude ldtp python-ldtp.
我什至尝试同时使用pip和在python 2中寻找它。我已经尝试了多次,因为即使安装了pip,我也找不到/使用它。
在python shell中,我使用以下命令检查了已安装的模块:
import pip
sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()])
导致:
['asn1crypto == 0.24.0','backcall == 0.1.0','bcrypt == 3.1.6','beautifulsoup4 == 4.7.1','certifi == 2018.11.29',' cffi == 1.12.1','chardet == 3.0.4','cryptography == 2.5','decorator == 4.3.2','html5lib == 1.0.1','idna == 2.8',' ipython-genutils == 0.2.0','ipython == 7.3.0','机械化== 0.4.0','paramiko == 2.4.2','pexpect == 4.6.0','pickleshare == 0.7.5','枕头== 5.4.1','提示工具包== 2.0.9','ptyprocess == 0.6.0','pyasn1 == 0.4.5','pyautogui == 0.9.41 ','pycparser == 2.19','pygetwindow == 0.0.4','pymouse == 1.0','pymsgbox == 1.0.6','pynacl == 1.3.0','pyrect == 0.1.4 ','pyscreeze == 0.1.19','pytweening == 1.0.3','requests == 2.21.0','robobrowser == 0.5.3','six == 1.12.0','soupsieve = = 1.8','traitlets == 4.3.2','unix == 1.0','urllib3 == 1.24.1','wcwidth == 0.1.7','webencodings == 0.5.1','werkzeug = = 0.14.1','xlib == 0.21']
当我尝试重新安装ldtp时,它说它已经是最新的了。但是,当我在上面的模块列表中查找时(适用于python 3; python 2不返回任何内容[]),ldtp不存在。有人可以告诉我ldtp可能隐藏在哪里,以便我可以导入它并开始使用它吗?
谢谢。