python - How do i get PyCharm to use the same virtual env interpreter or (default one) on any project/script? -


update: when had set interpreter , configured point script, run button grayed out (as shown in screenshot).
went run-> run (point config) (i thought id tried before, maybe not since restart).
worked, , no longer grayed out. however, run script still have configure point new script same config.
wanting not have , still don't have solution that.
dont see why should have point script have open, 1 have opened script wish run. maybe coded way...
particular question solved. didnt word correctly.

update: after updating pycharm newest version got error: enter image description here may or may not relevant question.


enter image description here enter image description here

just started python not long ago.

how pycharm use same virtual env interpreter or (default one) on project/script?

i want work out of box java does.

i keep having have set interpreter each script.

try shutting down pycharm , when start up, go 'configure' first before creating new project. go 'preferences' there.

pycharm has button in "python interpreters" section create new virtual environments. use create fresh one. update packages show outdated in window below (seems pycharm uses different 'pip' might have installed).

then go ahead , create new project assigning virtualenv project interpreter.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -