ERROR: Cannot install -r requirements.txt (line 2) and tensorflow>=1.14.0 because these package vers

pip安装时出现问题
pip install --force-reinstall -r requirements.txt
ERROR: Cannot install -r requirements.txt (line 2) and tensorflow>=1.14.0 because these package versions have conflicting

The conflict is caused by:
    The user requested tensorflow>=1.14.0
    tensorflowjs 0.6.4 depends on tensorflow==1.11.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
requirements.txt修改为

在这里插入图片描述
tensorflowjs==0.6.4改为 tensorflowjs>=0.6.4 即可

猜你喜欢

转载自blog.csdn.net/weixin_44232136/article/details/115404939