Add directory to Python path in PyCharm?(在 PyCharm 中将目录添加到 Python 路径?)
问题描述
我希望能够在 PyCharm 中使用 paraview.simple 库.我已经在我的电脑上安装了 paraview.这个包不能用
pip
安装,据我所知没有 .whl 文件.网站 docs 推荐目录包含所有 python 文件被添加到 PYTHONPATH.
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.
如何在我的 PyCharm 会话的 PYTHONPATH 中添加相关文件夹,并默认保留它,这样当我关闭并重新打开 paraview.simple
库时仍然可用?p>
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?
推荐答案
您可以通过这种方式添加自定义路径.
You can add custom paths this way.
- 转到文件->设置->项目解释器
- 在 Project-Interpreter 字段中,点击向下箭头并选择全部显示"
- 在该菜单中,突出显示您的解释器,然后在右侧菜单中选择显示所选解释器的路径"按钮(这是最后一个按钮)
- 点击加号添加您的路径
这篇关于在 PyCharm 中将目录添加到 Python 路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 PyCharm 中将目录添加到 Python 路径?


基础教程推荐
- 筛选NumPy数组 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01