emmeowzing
emmeowzing

Reputation: 2161

Change project interpreter after creation Pycharm

I've already changed the default project interpreter in PyCharm under File | Default Settings | Project Interpreter to Python 3.6, but when I try to write variable annotations (e.g. int: x = 6) PyCharm complains that Python version 3.4 does not support variable annotations, as Python 3.4 was the former interpreter I was using.

How do I change the syntax check to that of Python 3.6? Or any other interpreter, for that matter.

Upvotes: 1

Views: 4466

Answers (1)

John Moutafis
John Moutafis

Reputation: 23134

The default interpreter (and the default settings in general) apply on newly created projects, if you want to change an already created project settings you need to:

  1. File > Settings (or Ctrl+Alt+s as shortcut)> Project: > Project interpreter
  2. In the project interpreter dropdown list you can specify your interpreter by selecting the appropriate from the list
  3. In here you can even create a new virtual environment for your project by clicking on > Create VirtualEnv

Upvotes: 2

Related Questions