This error message is indicating that there is a version conflict between the requirements of your installed packages.

The first line suggests that scipy requires a version of numpy that is less than 1.27.0 but greater than or equal to 1.19.5. However, you have numpy version 1.17.4 installed, which is not compatible with this requirement.

Similarly, the second line indicates that matplotlib requires a version of numpy that is less than 2.0 but greater than or equal to 1.20. Again, your installed numpy version 1.17.4 does not meet this requirement.

To resolve this issue, you could try upgrading your numpy package to a version that satisfies both requirements. You can do this by running the following command:

!pip install numpy==1.20.0

This will install numpy version 1.20.0, which should be compatible with both scipy and matplotlib. After installing the updated numpy version, you should be able to use these packages without any compatibility issues.

ERROR scipy 1101 has requirement numpy1270=1195 but youll have numpy 1174 which is incompatibleERROR matplotlib 373 has requirement numpy2=120 but youll have numpy 1174 which is incompatible

原文地址: http://www.cveoy.top/t/topic/je1j 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录