Reputation: 5877
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 pip
and there are no .whl files as far as I can tell. The website docs recommend that the directory containing all the python files be added to PYTHONPATH.
How do I add the relevant folder in PYTHONPATH on my PyCharm session, and keep it there by default, such that when I close out and reopen the paraview.simple
library is still available?
Upvotes: 57
Views: 113566
Reputation: 4611
In PyCharm version 2020.3.1 use the following workflow instead (see official docs):
Ctrl+Alt+S - open Settings.
File|Settings|Project|Project Structure...
You will see project folder structure. Mark subfolders as Sources or Excluded
Upvotes: 15
Reputation: 767
For me, in PyCharm 2022.3.1 the way to do this was different than currently listed (though still similar).
Press CTRL+ALT+S to open settings or go through the toolbar via File -> Settings
Navigate to your Project
settings, expand, and click "Python Interpreter"
Click the drop down to show interpreters, and then click "Show All"
In the resulting popup, select the interpreter you want to add the path to, and then click the folder-tree icon
In the newest pop up modal window you can add paths by clicking the +
button and navigating to the path you want to include.
Upvotes: 2
Reputation: 56
For me this solved it: mapping the local path to the remote inside the Pycharm run configurations settings.
Edit Configurations > Path Mappings >
Local path = /<Users/me/pycharm etc.../project root> remote path = /
eg.
Upvotes: 0
Reputation: 8606
Adding interpreter paths in PyCharm:
Upvotes: 44
Reputation: 20462
You can add custom paths this way.
Upvotes: 80
Reputation: 3310
conda install -c conda-forge paraview
Upvotes: 1