To run a script in PyCharm, you have to create a run configuration. There are many default templates to choose from. You can select the basic Python script runner, supply the path to the script you'd like to run, define any command line variables you'd like to pass in, along with their values, and give the run configuration a unique name. Then you can run the script.
- [Instructor] We've got our very first script entered…in PyCharm, and we've left a few little things in here…that we can correct later.…You can see that on line four we've got this underline…indicating that there's something…that we probably need to fix,…and there's probably a few other nitpicky things…that we need to take care of later.…Generally though the first thing you're going to want to do…is actually run this script…to make sure there aren't any gross problems…with the Python script as we've typed it in so far.…In order to run your code in PyCharm,…you need to create a run configuration.…
To do that, I'll go up to run,…and select edit configurations.…When the run debug configurations window comes up,…you'll see that there are a list…of defaults here on the side.…If you'd like to customize the defaults for your project,…you can by selecting them and editing them.…But I generally don't do that.…I'm going to close this back up again…and I'm going to create a new configuration…based on one of these defaults.…
AuthorBruce Van Horn
- Installing the PyCharm, Git, and Pypy packages
- Adding functions
- Refactoring code
- Calling packages
- Debugging code
- Creating databases
- Working with in-line SQL
- Creating web projects with PyCharm
Skill Level Beginner
1. First Steps with PyCharm
2. Code Quality
3. Working with Databases
4. Web Projects
Odds and ends5m 42s
Next steps1m 42s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.