在 Visual Studio Code 上运行 Julia 和 Python
在过去的几个月里,我一直在使用 Visual Studio Code 来处理 Julia
文件。此前,我在 Spyder IDE 中使用 Python,我下载了 Anaconda 发行版以在我的 PC 中安装 Python 和各种软件包,然后安装 Jupyter 笔记本和 Spyder IDE。我想将 Visual Studio 用于 Python
和 Julia
。我已经在 Microsoft 的 VS Code 上安装了 Python 扩展,打开文件后,系统提示我在两个 Python 解释器之间进行选择
- Python 3.9.5 ~\julia\conda\3\python.exe
- 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
- Python 3.9.5 ~\julia\conda\3\python.exe
- 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误消息为
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.