pytorch的IDE自动完成 [英] IDE autocomplete for pytorch

查看:159
本文介绍了pytorch的IDE自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio Code.最近尝试了风筝.两者似乎都无法自动完成pytorch.

I'm using Visual Studio Code. Recently tried out Kite. Both of which doesn't seem to have autocomplete for pytorch.

这些工具是否可能?如果没有,有人可以建议这样做吗?

Is is possible with these tools ? If not, can someone suggest an editor that does ?

谢谢!

推荐答案

使用Pycharm https://www. jetbrains.com/pycharm/
获取社区版本,因为它可以免费使用调试器和自动完成功能. (对学生来说绰绰有余)

Use Pycharm https://www.jetbrains.com/pycharm/
Get Community version, because it is free with debugger and autocomplete. (more than enough for student)

要获得自动完成功能并在Pycharm IDE上运行/调试代码,您必须为安装pytorch的环境(或虚拟环境)设置正确的项目解释器路径

To get autocomplete and run/debug the code on Pycharm IDE, you have to set correct project interpreter path to your environment (or virtual environment) which you install pytorch

该屏幕快照显示我将Project Interpreter路径设置为名为"pytorch"的conda环境,并安装了Pytorch.

The screenshot shows that I set Project Interpreter path to conda environment named 'pytorch', which I install Pytorch.

这篇关于pytorch的IDE自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆