Installing PyCharm

From OpenCog
Jump to: navigation, search

Description

This page describes how to install PyCharm, which is the Python IDE that will be used for any Python related tutorials in this wiki.

Contents

First we need to download the installation file for PyCharm from the address below.

http://www.jetbrains.com/pycharm/download/index.html

Chromium will download it to your home/Downloads folder, in which case you should open a terminal window and go to that folder as shown below. If you put the file somewhere else you'll have to change the command below accordingly

cd ~/Downloads

You may not have a /bin folder in your home folder yet, so let's create that in case it doesn't exist.

mkdir ~/bin

Then type the command below to extract the installation file to the /bin folder inside your home folder. It will create a pycharm folder automatically

tar -C ~/bin/ -xvf pycharm-*

To start PyCharm you'll have to have an appropriate Java runtime installed. If you've already done this go into the pycharm folder that was just created (this will depend on the version), so let's go into your /bin folder first.

cd ~/bin

Then type ls to find out the exact folder name.

ls

And go into that directory.

cd pycharm-2.6.3

From there you can start PyCharm with the following command.

./bin/pycharm.sh

If there are issues with your Java installation it will give you an error message. If not, it will start the application and ask you about your personal settings. Feel free to make your own choice, but you probably won't have any settings to import.

Installing PyCharm 1.png


Next you will be asked for your license key. For open source purposes you can get a free license from JetBrains, just click the 'Buy now' button in the top right of this window to apply for the key. Then enter your name and the key you received (without > characters and spaces) and click 'OK' to continue.

Installing PyCharm 2.png


The next screen is the license agreement, just accept it to continue. After that you get to choose some user settings. You might want to pick the Visual Studio defaults if you're used to that environment. The rest doesn't matter for now.

Installing PyCharm 3.png


Next, Pycharm will need to create some files in a system folder, so you'll have to enter your admin password here:

Installing PyCharm 4.png


And that's it, we're all done! You should see the Python IDE's main screen ready for use. Continue with Creating a PyCharm project for OpenCog for details on how to get the Python components of OpenCog to work on your system.

Installing PyCharm 5.png


Next Steps

Now you have PyCharm installed, you'll need to get the Python components of OpenCog and set up a project to be able to do anything with it. See Creating a PyCharm project for OpenCog for details.

Q&A

Any questions?

Then please ask them here.