Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA 12 Python Package Manager?

I use JetBrains' IntelliJ IDEA 12 for both Java and Python development (Python development through the official Python IntelliJ plugin). My friend uses PyCharm (same company and similar interface, just dedicated to Python) and he showed me a cool feature of PyCharm: there's a Python package manager built-in to the IDE. I looked through the menu options in IntelliJ IDEA but I couldn't find anything relating to Python packages. Does this exist in IntelliJ IDEA/the Python plugin, or am I out of luck for now/unless I move to PyCharm for dedicated Python development?

I'm currently using Python 3.2 and IntelliJ 12.1.4 and Python Plugin 2.10.1.

like image 585
CraigularB Avatar asked Jun 13 '13 20:06

CraigularB


People also ask

Is there a Python package manager?

Python Package Manager (PyPM) is a Python utility intended to simplify the tasks of locating, installing, upgrading and removing Python packages. It can determine if the most recent version of a software package is installed on a system, and can install or upgrade that package from a local or remote host.

How do I install and enable Python plugin in IntelliJ?

Press Ctrl+Alt+S , go to Plugins and inspect the Installed tab to ensure the plugin is enabled. Also make sure that the following prerequisites are met: Python SDK is downloaded and installed on your machine. The required framework SDKs are downloaded and installed on your machine.

Can I use IntelliJ IDEA for Python?

To work with your Python code in IntelliJ IDEA, you need to configure at least one interpreter. A system interpreter is the one that comes with your Python installation. You can use it solely for all Python scripts or take it as a base interpreter for Python virtual environments.


2 Answers

Tools | Manage Python Packages...:

manage

like image 158
CrazyCoder Avatar answered Sep 22 '22 19:09

CrazyCoder


It is a rough ride for anyone using the IntelliJ IDEA editor coming from any of their dedicated editors (PyCharm, PHPStorm, etc). They look almost the same, but there are critical differences that often go undocumented. A couple tips for anyone struggling with these types of issues:

  1. In IntelliJ IDEA, there's a "Project Structure" window that houses many of the things that are put in easy-to-find locations in the dedicated editors. Its icon looks a blocky staircase -- on Mac, it you can open it using Apple + semicolon or selecting it from the "File" menu.

  2. Intellij IDEA must be told what kind of project it is editing before certain menu options will show up. Nope, the polyglot IDE cannot guess that you are working on a python project if all your files have the .py extension, you have to install the Python module. In PHP, IntelliJ is even more helpless: it cannot take a wild guess that PHP is the language being used and there is no "module" or PHP framework support. Derp de derpity derp!

As nice of a product as the IDEA editor is, it is maddeningly stupid and its developers seem oblivious to the problems inherent with it for people coming from IntelliJ's language-optimized IDEs. In my experience, the best way to get help with some of these issues is to file a ticket directly with IntelliJ because the wiki/help pages almost without fail document the corresponding features in the dedicated language editor.

like image 23
Everett Avatar answered Sep 23 '22 19:09

Everett