formulahendry / vscode-code-runner

Code Runner for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
MIT License
2.21k stars 298 forks source link

psutil not recognized by Code-Runner #430

Open ramaagcp opened 5 years ago

ramaagcp commented 5 years ago

Describe the bug Description of what the bug is.

To Reproduce

Expected behavior Description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. Steps to reproduce the behavior:

  1. Run the Code in output Terminal

Actual behavior [Running] python -u "/Drives/My Drive/Rapid/Python Lab/My Work/cpumemusage.py" Traceback (most recent call last): File "/Drives/My Drive/Rapid/Python Lab/My Work/cpumemusage.py", line 1, in import psutil, os ImportError: No module named psutil

[Done] exited with code=1 in 0.017 seconds

michaelabdo commented 4 years ago

Try run python -m pip install psutil outside of venv, if it works you may have an issue with the virtual environment you set up

kdresser commented 4 years ago

@michaelabdo Thanks for the tip. It worked for me on Windows 7, VSCode 1.50.1, developing a PyQt5 app.