skip to Main Content

Visual Studio Code – I cannot run the program directly in VSCode but can run it using the terminal in VScode

Environment Data Windows 11 python 3.11.4 VS Code Program Information Here is some basic information about my program: This program`s path: d:LearningProgrammingpython_workFile_Readerfile_reader.py file_path = 'File\pi_digits.txt' with open(file_path) as file_object: contents = file_object.read() print(contents) #This program try to open the file:d:LearningProgrammingpython_workFile_ReaderFilepi_digits.txt…

VIEW QUESTION

how to import anaconda pandas module in visual studio code environment?

I configure the apache spark in visual studio code environment. The confiugration of settigs.json is like below, "python.defaultInterpreterPath": "C:\Anaconda3\python.exe", "terminal.integrated.env.windows": { "PYTHONPATH": "C:/spark-3.4.1-bin-hadoop3/python;C:/spark-3.4.1-bin-hadoop3/python/pyspark;C:/spark-3.4.1-bin-hadoop3/python/lib/py4j-0.10.9.7-src.zip;C:/spark-3.4.1-bin-hadoop3/python/lib/pyspark.zip" }, "python.autoComplete.extraPaths": [ "C:\spark-3.4.1-bin-hadoop3\python", "C:\spark-3.4.1-bin-hadoop3\python\pyspark", "C:\spark-3.4.1-bin-hadoop3\python\lib\py4j-0.10.9.7-src.zip", "C:\spark-3.4.1-bin-hadoop3\python\lib\pyspark.zip" ], "python.analysis.extraPaths": [ "C:\spark-3.4.1-bin-hadoop3\python", "C:\spark-3.4.1-bin-hadoop3\python\pyspark", "C:\spark-3.4.1-bin-hadoop3\python\lib\py4j-0.10.9.7-src.zip", "C:\spark-3.4.1-bin-hadoop3\python\lib\pyspark.zip" ] But I…

VIEW QUESTION
Back To Top
Search