PyCharm and external libraries

后端 未结 4 755
清歌不尽
清歌不尽 2020-12-05 04:45

I have started to use PyCharm IDE, but I was not able to determine how to manage external libraries there. For instance, PyCharm does not see matplotlib. In PyC

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 05:17

    I suggest to use Python virtual environment. It is really easy with PyCharm.

    PyCharm > Preferences... > Project Interpreter > Python Interpreters

    Click "Create Virtual Environment" and pick your base interpreter.

    enter image description here

    Click "Install" and install any packages you need. You can also add other repositories if the default ones do not contain required libraries. Another benefit is that you can see which libraries have newer version and can be updated.

    enter image description here

提交回复
热议问题