Whenever I try to run script via Virtualenv in pycharm, i get this error:
C:\\Users\\Costello\\PycharmProjects\\test\\venv\\Scripts\\python.exe C:/Users/Costello
I fixed it by removing values from Interpreter options field in run/debug configurations. While trying to add an interpreter, I had added the python path to the mentioned field.
After clearing out the field all worked well.
You can find run/debug configuration
settings in the drop-down left of run icon on top-right of pycharm window.