When using some third-party libraries in Pycharm, the wrong version may cause bugs, so how to upgrade the third-party libraries?
- Open Pycharm main interface File—Settings
- Project—Project Interpreter—Latest version
is in the latest version column, and there is a ▲ logo indicating that it needs to be updated. Click ▲ on the right column to upgrade
. In addition, the following code can be used to query the version of the third-party library:
# 以matplotlib库为例进行说明
import matplotlib
matplotlib.__version__
# 输出结果
3.2.2