记性不好,还是记下来吧。
很多深度学习代码,用我自己的破笔记本跑不了。实验室有一台高性能电脑,一般跑模型都在上面跑。用远程桌面或者远程命令行控制,但是这样调试起来不太方便,所以这里介绍一种能够使本地的pycharm用远程python解释器的方法。
- 打开pycharm你自己的项目 File > Settings
![v2-d203a0b3a21fb71a7afc87105a13ee2e_b.jpg](http://img-01.proxy.5ce.com/view/image?&type=2&guid=7a99930d-1f30-eb11-8da9-e4434bdf6706&url=https://pic3.zhimg.com/v2-d203a0b3a21fb71a7afc87105a13ee2e_b.jpg)
2. Project > Project Interpreter
![v2-4b96f1d68a9e938cd4ab9a721965e678_b.jpg](http://img-03.proxy.5ce.com/view/image?&type=2&guid=7a99930d-1f30-eb11-8da9-e4434bdf6706&url=https://pic1.zhimg.com/v2-4b96f1d68a9e938cd4ab9a721965e678_b.jpg)
3. 如图(实验室高性能电脑安装的是ubuntu)
![v2-2c28c7ffdeeb4490510a735a3f014f68_b.png](http://img-01.proxy.5ce.com/view/image?&type=2&guid=7a99930d-1f30-eb11-8da9-e4434bdf6706&url=https://pic1.zhimg.com/v2-2c28c7ffdeeb4490510a735a3f014f68_b.png)
![v2-a75edcee7e0034ec7e6675a0ea5a2481_b.png](http://img-01.proxy.5ce.com/view/image?&type=2&guid=7a99930d-1f30-eb11-8da9-e4434bdf6706&url=https://pic2.zhimg.com/v2-a75edcee7e0034ec7e6675a0ea5a2481_b.png)
![v2-a972cc9f53f639f0d41aa54ff3e9706c_b.jpg](http://img-02.proxy.5ce.com/view/image?&type=2&guid=7a99930d-1f30-eb11-8da9-e4434bdf6706&url=https://pic1.zhimg.com/v2-a972cc9f53f639f0d41aa54ff3e9706c_b.jpg)
![v2-e2d22cdda0a4adc91c02dcfc8fe58cfd_b.jpg](http://img-03.proxy.5ce.com/view/image?&type=2&guid=7a99930d-1f30-eb11-8da9-e4434bdf6706&url=https://pic2.zhimg.com/v2-e2d22cdda0a4adc91c02dcfc8fe58cfd_b.jpg)
![v2-3e59b29f2bfd50efe546281ce190dd44_b.jpg](http://img-03.proxy.5ce.com/view/image?&type=2&guid=7a99930d-1f30-eb11-8da9-e4434bdf6706&url=https://pic1.zhimg.com/v2-3e59b29f2bfd50efe546281ce190dd44_b.jpg)
![v2-98703f7ec5674668e2e9511a738596fd_b.png](http://img-03.proxy.5ce.com/view/image?&type=2&guid=7a99930d-1f30-eb11-8da9-e4434bdf6706&url=https://pic2.zhimg.com/v2-98703f7ec5674668e2e9511a738596fd_b.png)
选择远程anaconda中的envs中你对应的环境>bin>pythonx.x ,然后点finish就好啦~