简体   繁体   中英

Running Julia and Python on Visual Studio 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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM