步骤10: 测试配置 在项目设置的“Project Interpreter”(项目解释器)选项卡中,可以看到我们刚刚配置的远程Python解释器。点击“OK”按钮保存设置。 现在,我们可以在PyCharm中编写、运行和调试远程服务器上的Python代码了。 示例 假设我们已经成功配置了远程Python解释器。我们可以创建一个简单的Python文件,并在远程服务器上...
在“Remote Python Interpreter” 部分,选择在远程服务器上安装的 Python 解释器的路径。如果您不确定,请与服务器管理员联系。 单击“OK”,保存配置并关闭设置窗口。 现在,您已成功配置了远程 Python 解释器。接下来,我们将通过一些示例代码来演示其用法。 示例代码 以下是一个简单的示例代码,演示了如何在 PyCharm ...
1、单击主工具栏的设置按钮打开Settings/Preferences对话框,选择Project Interpreter页面,单击设置按钮然后选择Add Remote: 接下来,在Configure Remote Python Interpreter对话框中,选中SSH credentials,然后键入服务器的Host、端口号、用户姓名等等: 此时这个远程解释器可以作为当前工程的解释器来使用了,注意这里所有的远程解释器...
For more information, refer toConfigure a Hatch environment. Ensure that there is an SSH server running on a remote host, since PyCharm runs remote interpreters via ssh-sessions. Do one of the following: Click thePython Interpreter selectorand chooseAdd New Interpreter. ...
虽然已经配置好了远程的 python 解释器,运行.py文件没问题,但是运行 jupyter notebook 时需要进行额外的配置。 打开或新建一个 jupyter notebook 文件,点击右上角的Manage Jupyter Server > Configure Jupyter Server. 2. 点击Configured Server选项卡,填入服务器地址,点击 OK。
You can configure the path mappings between your local project and the server. To do that, click theBrowseicon in theSync foldersfield and enter the path to the local project folder and the path to the folder on the remote server.
解决办法是:直接点击此提示框右侧的:Configure Python interpreter 跳转设置去选择解释器 如果这里没有解释器,就点击右侧的+号,新建一个,选择好解释器之后等待一会,之前的`Configure Python interpreter`提示框就会消失 接下来看看Pycharm与GPU远程服务器互联的强大功能: ...
which python:显示我们自己使用的Python解释器路径 (此为Interpreter的路径) PS:若修改本地codes,按Ctrl+S未同步到服务器时,需要重新查看下?Tools->Deployment->Configure下的Connection与Mappings是否被篡改。 PS:若经过上述检测仍未同步成功,检测是否将设置的configuration设置为默认。若没有正确设置默认configuration,可在...
继续设置,我选择解释器,如在路径 usr/bin/python 中标识的解释器,作为项目目录,我在 home/ubuntu/MyProject 中选择我的项目目录 这是我在设置远程解释器后看到的 所有连接测试均已成功通过,但是当我运行代码时出现此错误 Error running 'main': Can't run remote python interpreter: Error connecting to remote ho...
查看Python解释器位置,修改pycharm相应的解释器path. 启动SSH终端 File | Setting | Tool | SSH Terminnal下Deployment server选择之前配置好的。 想要更换服务器或者想要重新配置SSH Terminal的话,File | Setting | Tool | SSH Terminnal下选择Deployment server右侧Configure Servers,然后添加新的deployment. ...