Using and Mastering Cookiecutter Transcripts
Chapter: System setup and installing Cookiecutter
Lecture: Linux setup

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Hello my Linux friends. Let's talk about what you've got to set up on your machine to do this class, in the same way that I am at least.
0:09 You'll see that you actually already have Python and Python 3 installed in Linux if you're using something like Ubuntu,
0:16 so that's pretty awesome, I'll show you where to go to get it if you don't happen to have it.
0:21 And, I'll show you how to install PyCharm, it works wonderfully on Linux but it's a little bit of a pain to set up so I'll walk you through that.
0:28 So, here we are over in Ubuntu 15, brand new fresh version I literally just downloaded it, and we're on the PyCharm page,
0:37 so we can go and download PyCharm, you'll see there is actually two versions, there is a professional and a community edition,
0:45 we're going to download the professional edition, you can get a 30 day free trial and if you pay for it like I do,
0:50 then obviously you could have it forever. The main difference between the community and professional edition,
0:56 the community edition is always free, is the community edition does a whole bunch of cool Python stuff, but doesn't do web or database work,
1:03 the professional edition does in addition to standard Python things, web frameworks, TypeScript, database, designer type things.
1:11 So for this course, you can totally get by with community but for professional work, well, maybe a professional is the thing to go with.
1:18 Some of the other editors you might choose, if for some reason you don't want to use PyCharm, is you could use Atom,
1:25 this is a really great editor from GitHub, I really like it, and the video is hilarious so check out the video just for a laugh.
1:31 Sublime Text is very popular and of course you can use Emacs or Vim that a lot of people are using.
1:37 As I said, Ubuntu comes with Python 2 and 3 but for some reason if you need to download it, just come over here, Python.org, grab the latest version,
1:45 it will automatically find the right thing for your operating system, you could also install it with aptitude, you can do things like
1:51 apt-get install Python3-dev there is a couple of packages that you can install.
1:56 So first, let's verify that I actually do have Python installed, Python 3, so I can come over here and say Python3 --version and we have 3.4.3 plus,
2:06 which makes it even better than 3.4.3, awesome, and then we have PyCharm, we're going to go download it now,
2:13 it's kind of big so I actually already downloaded it, go over here to my downloads folder, and we have the tarball right here,
2:19 so we need to decompress this and copy it somewhere else, so I come over here, right click and say extract here,
2:26 and it will extract it out, now it has the version name here, let's find, let's make a new location and let's just put it in my home
2:35 I like to create a folder called bin in my home and then in here I'll make a folder called PyCharm and within PyCharm I'll put PyCharm 5.0.4.
2:44 Now if you open it up you see there is nothing to run right away but there is a bin folder within there and what we want to do is
2:52 we want to run this script, so I could double click it and it will just open in gedit, not the best,
2:57 so I am going to come over here and just drop it, into my terminal, and run it.
3:02 Now, it turns out there is a problem, PyCharm is built on the IntelliJ platform, the IDE platform, and that platform is Java based,
3:11 so we need to install Java before we can carry on. So on Ubuntu, we'll just use apt get so we'll say sudo
3:19 for running super user, sudo apt-get install openjdk-8-jdk And I'll put in my password, I'll wait for a moment,
3:27 it says are you sure you want to do this, it might take a moment, 171 MB it's fine, go.
3:38 Excellent, well, that took a minute, but now we have Java installed, let's try to run that again, PyCharm shell, now it's running,
3:47 you can see it says do you want to import previous versions, well no, this is a brand new machine so no, not really.
3:52 Now normally I would just login with my JetBrains account but for now,
3:55 I'll just evaluate it for free, which you guys should be able to do for this class. When PyCharm first opens, it asks us what keyboard map
4:06 and Visual Theme we would like, I am going to leave the keyboard map alone, but I like my code, my IDEs and Windows and stuff to be dark, not bright,
4:17 so dark background, light code, so I am going to pick the Dracula theme for both, the code colors as well as IDE theme and we'll say ok,
4:27 and you can't make this change unless you restart so yes, let's let it restart.
4:34 Excellent, my PyCharm is running, it's nice and dark with its Dracula theme now the one other thing I'd like to do is notice it's over here,
4:41 and I'd kind of like to not be running this shell script anymore, straight from the terminal, so let's run it one more time,
4:48 notice it's gone from the launcher. Now, it's up and running, I can lock it to the launcher,
4:53 and now this way, when it's gone, I want to launch it again, I can just come over here and launch it straight out of the launcher.
5:00 Congratulations, you have PyCharm working on Ubuntu. Time to head on over and build your first app, and have a great time doing it.


Talk Python's Mastodon Michael Kennedy's Mastodon