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

发表回复

登录... 后才能评论