Add directory to Python path in PyCharm?

前端 未结 3 913
北海茫月
北海茫月 2020-12-05 13:30

I want to be able to use the paraview.simple library in PyCharm. I already have paraview installed in my computer. This package cannot be installed with p

相关标签:
3条回答
  • 2020-12-05 14:23

    Adding interpreter paths in PyCharm:

    1. Project Settings/Project Interpreter: select "settings" icon
    2. Project Interpreters: select "tree" icon
    3. Interpreter Paths: select "plus" icon

    0 讨论(0)
  • 2020-12-05 14:23
    • Use anaconda with Pycharm
    • To install paraview with anaconda run the following command: conda install -c conda-forge paraview
    • If conda command is not recognized then register the Anaconda path to environment variable
    • Now open pycharm and give the configuration path as the Anaconda path
    • File -> Settings -> Project Interpreter
    • In Project Interpreter give similar path : "C:\Users\username\Anaconda3\python.exe"
    0 讨论(0)
  • 2020-12-05 14:30

    You can add custom paths this way.

    • Go to File->Settings->project Interpreter
    • In the Project-Interpreter field, click the down facing arrow and select "show All"
    • In that Menu, highlight your interpreter and then in the right menu, select the button "Show paths for the selected interpreter" (this is the last button)
    • click the plus symbol to add your path
    0 讨论(0)
提交回复
热议问题