-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Troubleshooting
On this Wiki page we will discuss possible installation problems and their solutions.
Problem: I received a warning message: UserWarning: Unable to import modules from matplotlib ...
upon running import prosrs
.
-
Explanation: This is an indication that
matplotlib
package is not installed properly on your system. Without thematplotlib
package properly installed, users will not be able to take advantage of visualization capabilities offered in theprosrs
package. However, it is worth noting that the visualization components are not essential to the package as they do not affect optimization results in any way. Even withoutmatplotlib
, users can still use theprosrs
package to solve optimization problems. Consequently, this error merely triggers a warning rather than a fatal error. -
Solution: The solution consists of 3 steps:
- Uninstall
prosrs
package:pip uninstall prosrs
. - Reinstall
matplotlib
package by following the official installation guide. You may also find this blog post useful when dealing with some of the installation issues. To check whethermatplotlib
has been successfully installed (or at least good enough for runningprosrs
), please make sure that you can run the following error-free:
import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator from matplotlib import cm from mpl_toolkits.mplot3d import Axes3D
- Install
prosrs
package:pip install prosrs
. Once the installation is completed, runimport prosrs
again and you should see no warning message this time.
- Uninstall