PYTHON2.7无法安装模块解决方法
报错:
ImportError: No module named pymodbus.client.sync
使用命令(错误命令):
php install pymodbus.client.sync
ERROR: Could not find a version that satisfies the requirement pymodbus.client.sync (from versions: none)
ERROR: No matching distribution found for pymodbus.client.sync
应该使用如下命令安装:
pip install pymodbus
但安装的时候仍然报错:
ERROR: Cannot uninstall 'pyserial'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决方法:前置安装忽略已安装
sudo -H pip install --ignore-installed -U pymodbus
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。