Running into issues not on this page? Check Ed (under the PyCharm category) or make a new post if you're still stuck!
Our strong recommendation is to use Python 3.9 or later, which can be installed in parallel with other versions of Python. This is the only version of Python we'll be supporting in this class. You must use at least Python 3.6.
If there's another environment that you're more comfortable with, you may use it, but the course staff will only provide support for issues in PyCharm. You must not modify any configuration files provided in assignment starter code.
can't open file intro.py: No such file or directory
! What does this mean?
This most often happens when you open the incorrect file or folder in PyCharm. In this case, make
sure to
open the pycharm_intro
folder that directly contains intro.py
,
rather than
intro.py
itself or a folder containing pycharm_intro
. On Windows computer,
you may
have a folder called pycharm_intro
with another folder inside it called
pycharm_intro
.
Make sure to open the inner folder.
To correct this error, open the 'File' menu and click 'Open'. Then, navigate to the correct
pycharm_intro
folder and open it.
To verify that you are in the correct folder,
type ls
(that's a lowercase 'L')
dir
into your terminal (the same place
you type python3 intro.py < YOUR NAME HERE >
).
This will show you a list of all the files in that folder, and intro.py
should
be in this list.
Go into your computer settings (not PyCharm settings) and search for "Manage App Execution Aliases". Click on this, and then you should see a page with lot of switches for various applications. Scroll to the bottom, and turn off the switches for python.exe.
If you're still getting this error, try using "python" instead of "py" or "python3" when you enter your command into the terminal - if this works, you should use "python" in your terminal commands for the rest of the quarter.
This is likely caused by an issue with how you set up the interpreter. To fix this, click 'Configure Python Interpreter', and set up the interpreter by following these steps until the 'Testing Pycharm' section.
You might be using a slightly older version of MacOS. Try installing this version of PyCharm instead.
If you are using a relatively new Mac, you may need to download a different version of the community version of PyCharm. Un-install the version you have, and then when you redownload click the downloads dropdown and select "Apple Silicon":
You might have downloaded the professional version of PyCharm, which is paid. Instead, select the community version on the PyCharm site and download that version.
Try installing this version of PyCharm instead.
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh
. What should I do?
That's just an innocuous message, don't worry about it!
These instructions mean that in order to open the project,
go to PyCharm and then click the "open" button:
and then click on the folder you just unzipped (not the .py file inside the folder) and open that.
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release.
Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
What should I do?
Do you have the most current version of Python?
Try:
1. Saving your code
2. Closing PyCharm and then updating python to the newest version
3. Reopening the project in PyCharm
4. Rerunning your code
First, close out of PyCharm completely.
You can use the Python download link from here
When you click this link, you will see a "Download the latest version for macOS" screen,
and then you click the Download button and follow the installer instructions.
In PyCharm, you'll want to change your interpreter to this newer version of Python using the
instructions in the PyCharm Download
Handout
Course FAQs will be updated as we receive questions.