PyCharm and external libraries

后端 未结 4 744
清歌不尽
清歌不尽 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:22

    I think one way to solve a problem is to specify your interpreter in PyCharm itself via File -> Settings -> Python Interpreters

    There is also a Paths tab in this setting, you need to add path to your matplotlib explicitly there. But for me there is no special path listed there. Here are my paths in this tab:

    file://D:/hg_work/vefw_regression/tools/python/DLLs
    file://D:/hg_work/vefw_regression/tools/python/Lib
    file://D:/hg_work/vefw_regression/tools/python/Lib/lib-tk
    file://D:/hg_work/vefw_regression/tools/python
    file://D:/hg_work/vefw_regression/tools/python/Lib/site-packages (my matplotlib/numpy and other stuff is here)
    file://D:/hg_work/vefw_regression/tools/python/Lib/site-packages/win32
    file://D:/hg_work/vefw_regression/tools/python/Lib/site-packages/win32/lib
    file://D:/hg_work/vefw_regression/tools/python/Lib/site-packages/pythonwin
    file://D:/Users/svecovs/AppData/Roaming/JetBrains/PyCharm Community Edition 3.0.1/helpers/python-skeletons
    file://D:/hg_work/vefw_regression/tools/python/Lib/site-packages/core (added by user)

提交回复
热议问题