Resolving Import Issue in .py File When Package is Already Installed and Works from Terminal
I have a python script that, when opened in VSCode or any other code editor, fails to import the arch
package. After making sure that it was downloaded and that I wasn’t running in any virtual environment, I tried running the script from terminal with python ./file.py
. To my surprise, no error was reported and the segment of code which relied on the arch
package ran as expected.