cs111
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- tags: Documentation, Python title: PyCharm EDU setup guide --- # PyCharm EDU setup guide :::info If you are having a hard time with installation, please post on [Ed](https://edstem.org/us/courses/12806/discussion/) or come to TA hours! To follow along with a TA, check out this [**video**](https://youtu.be/axCO_wErTd4) for Macs, and this [**video**](https://www.youtube.com/watch?v=ZUXF2bvCTZI) for Windows. ::: 1. Go [here](https://www.python.org/downloads/release/python-379/), scroll down, and download Python 3.7.9, and install it. Mac users should download the MacOS 64-bit installer and Windows users should download the Windows x86-64 executable installer. 3. Go [here](https://www.jetbrains.com/education/download/#section=pycharm-edu) and hit “Download” with the ".dmg" option for Mac users or ".exe" for Windows. 4. A dialog will pop up, select “Save File” 5. When the file finishes downloading, open the PyCharm app 6. It may ask if you want to give the program permission to make changes to your computer: select yes 7. Click thru the installation dialogs. The default options should be fine. If it asks what Python version you would like, select Python 3.7 (if it only lists 3.8, selecting 3.8 is fine) 8. The application will install; this might take a couple minutes 9. When the installation finishes, select the checkbox that says “run pycharm edu,” and then hit finish 10. The program will launch and ask if you are a learner or an educator. Select Learner 11. You can then hit create new project in the screen that comes up (following along on the video for this might be easier) 1. Give your project a name (perhaps “Homework 7”) 2. Click "Project Interpreter New VirtualEnv Environment" 3. Click the "Base Interpreter" dropdown and select "Python 3.7" or "Python37" (varies by operating system). Look towards the end of this guide for a detailed explanation. 4. Click "Create" and you should get to the code editor 12. It will look something like the above. Double click the “Project” button, which is highlighted in the below image: ![](https://i.imgur.com/SBdL2Zn.png) 14. It should now look like this. Right click on homework7 (or whatever you named your project), and select New -> Python File. Give it whatever name you would like. ![](https://i.imgur.com/oBTxzFU.png) 16. You can now edit code, and there should be a little green arrow in the upper left of the editor screen to run the code 17. If you would like a guide line at 80 characters so you know how long to make your lines, go to PyCharm -> Preferences -> Editor (click on the arrow to open down the editor menu) -> Code Style (click on the word, not the arrow), then enter 80 in the box that says "Visual Guides" 18. Go to Editor -> Code Style on the left, and for visual guides put 80 columns. 19. There will now be a guideline, but by default it is almost impossible to see. To fix this, in settings go to Editor -> Color Scheme -> General on the left. Then in the menu that shows up on the right of the settings window, go to Editor -> Guides -> Visual Guides. On the far right of the settings window, it will say Foreground and then have a grey box that says #EEEEEE. Click the #EEEEEE and select a new color for your guidelines that isn’t almost exactly the same as the background of the text editor. 20. After hitting Apply and then Okay, you now should have a colored guideline in your editor! ### How to Change Base Interpreter Version of Python in PyCharm: PyCharm will often default to the first version of Python that is installed on your laptop. To change PyCharm settings to run with Python version 3.7: On a Windows Machine: - Click File → Settings → Project → Python Interpreter On a Mac : - Click PyCharm → Preferences → Project → Python Interpreter At the top you will see a Settings gear, click on it for the drop down menu for “Project Interpreter," and select "Add". ![](https://www.jetbrains.com/help/img/idea/2020.2/py_interpreter_dialog_add.png) Select the option for Python 3.7. If you do not see the option, select “Add”. There will be another drop down for Base interpreter: ![](https://www.jetbrains.com/help/img/idea/2020.2/py_create_virtual_environment.png) If you do not see Python 3.7 as an option, click “...” to the right of the Base interpreter. Select the folder to where the Python 3.7 version is downloaded on your laptop. (It may vary, however usually look for Python 3.7 folder in /usr/local/bin/ on Mac or within C:/program Files on Windows) Select the option to “make available to all projects”. Click "OK" to confirm all changes! ### How to Run Your Code in PyCharm There are multiple ways to run your code! Method one: One way is to select the portion of code you want to run, and right click. Select "Run" (with the green arrow). Method 2: Go to the top right, and select "Add Configuration". ![](https://www.jetbrains.com/help/img/idea/2020.2/py_runConfigMenu.png) Select the plus sign at the top right. Click "Python". ![](https://www.jetbrains.com/help/img/idea/2020.2/py_add_new_configuration.png) Then change the script path by clicking the folder icon, and double clicking to select the python file you want to run! Then press "OK" to confirm changes. Now you will see a green play button on the top right! Press to run your code. Method 3: Go to the bottom left, and use the "Run" console. Do not use the Python Console.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully