在 Visual Studio Code 上运行 Julia 和 Python

发布于 2025-01-15 00:50:31 字数 515 浏览 2 评论 0原文

在过去的几个月里,我一直在使用 Visual Studio Code 来处理 Julia 文件。此前,我在 Spyder IDE 中使用 Python,我下载了 Anaconda 发行版以在我的 PC 中安装 Python 和各种软件包,然后安装 Jupyter 笔记本和 Spyder IDE。我想将 Visual Studio 用于 PythonJulia。我已经在 Microsoft 的 VS Code 上安装了 Python 扩展,打开文件后,系统提示我在两个 Python 解释器之间进行选择

  1. Python 3.9.5 ~\julia\conda\3\python.exe
  2. Python 3.8.10 (' base') ~\anaconda3\python.exe

但是,我的程序似乎不适用于这些解释器。然而,相同的程序也适用于 Spyder。我之前曾在 Julia 中使用过 Python,但如何让 Python 在 VS Code 上运行?

I have been using Visual Studio Code to work with Julia files over the last few months. Previously, I was working with Python in the Spyder IDE, where I had downloaded the Anaconda distribution to install Python and various packages in my PC and then installed Jupyter notebooks and the Spyder IDE. I would like to use Visual Studio for both Python and Julia. I have installed the Python Extension on VS Code, by Microsoft, and after I open a file, I am prompted to select between two Python Interpreters

  1. Python 3.9.5 ~\julia\conda\3\python.exe
  2. Python 3.8.10 ('base') ~\anaconda3\python.exe

However, my program does not seem to work with either of these interpreters. The same program however, works on Spyder. How do I get Python to work on VS Code while I have previously used it for Julia?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温柔少女心 2025-01-22 00:50:31

错误消息为python:无法打开文件'C:\ Users \ Administrator \ ipython':[Errno 2]没有这样的文件或目录

如果是,您需要打开一个文件夹,然后在其中创建一个文件,而不是直接打开一个文件。

The error message is python: can't open file 'C:\Users\Administrator\ipython': [Errno 2] No such file or directory?

If it is, you need to open a folder then create a file in it instead of just open a file directly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文