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
In your Pycharm:
Run - Edit Configurations
Configuration tabs
, select Module name
in option Choose target to run
and type your python file's nameApply
and OK
buttonOr the simple way is when you run your code for first time (on a new file) just type keyboard Alt+Shift+F10
to run and save the configuration. On the second time (after configuration is saved) just type Alt+F10
to run your code.