You can also use virtualenv from the IntelliJ IDEA Python plugin

When building a development environment with Python, I think that many people use virtualenv so as not to pollute the base Python environment. Compared to that, I think that the number of users is small, but in fact, virtualenv can be used easily even with the Python plug-in of IntelliJ IDEA, so I will introduce it.

The environment used for this creation is as follows. It seems that it also supports venv, which became a standard function in Python 3.3. I'm trying without putting virtualenv in advance.

First, create a new project as a trial. The module is of course Python.

スクリーンショット_120513_054519_PM.jpg

Next, on the Configure SDK screen, select Python SDKCreate Virtual Env ...from the + button on the upper left.

無題クリップ_120513_055845_PM_120513_062731_PM.jpg

In the Create Virtual Environment dialog, select the virtualenv name and destination, and the base Python SDK. A python 3.3.3 virtual environment has been created in a folder called venv-33.

スクリーンショット_120513_060122_PM.jpg

After that, if you select the created virtual environment and proceed to the next step and complete the wizard, you will be able to develop in the virtual environment you just created. Now that we need SQLAlchemy, let's put it in. Write ʻimport sqlalchemy, press Alt + Enter, and select ʻInstall package sqlalchemy to install the module.

無題クリップ_120513_061013_PM.jpg

Installation is complete. Of course, SQLAlchemy will be installed in the virtual environment you created earlier.

スクリーンショット_120513_061413_PM.jpg

It's convenient to be able to easily create a virtual environment with virtualenv!

For more information on PyCharm, see also PyCharm Help (http://www.jetbrains.com/pycharm/webhelp/creating-virtual-environment.html). It is also possible to use the existing virtualenv environment. For PyCharm, see Adding Existing Virtual Environment.

Recommended Posts

You can also use virtualenv from the IntelliJ IDEA Python plugin
Use the Flickr API from Python
Consider what you can do with Python from the Qiita article
Until you can use opencv with python
Specify the Python executable to use with virtualenv
Until you can use the Google Speech API
Use the nghttp2 Python module from Homebrew from pyenv's Python
Use PIL in Python to extract only the data you want from Exif
Use MySQL from Python
I wanted to use the Python library from MATLAB
Use MySQL from Python
Use BigQuery from python.
Use mecab-ipadic-neologd from python
Solution when you want to use cv_bridge with python3 (virtualenv)
Why can I use the module by importing with python?
What you can do with the Python standard library statistics
[Free to use] 7 learning sites where you can study Python
Use MySQL from Anaconda (python)
[Python] How to use virtualenv
Use e-Stat API from Python
Can you delete the file?
From a book that programmers can learn (Python): Find the mode
Use Stanford Core NLP from Python
Existence from the viewpoint of Python
Forcibly use Google Translate from python
Use rospy with virtualenv in Python3
Install the Python plugin with Netbeans 8.0.2
Use kabu Station® API from Python
Use Azure Blob Storage from Python
Sakura Use Python on the Internet
Use fastText trained model from Python
Use Google Analytics API from Python
Python | What you can do with Python
You can also check the communication of DB and cache with curl
Tips for Python beginners to use the Scikit-image example for themselves 9 Use from C
[Python] To get started with Python, you must first make sure you can use Python.
Use Python from Java with Jython. I was also addicted to it.
Use the LibreOffice app in Python (2) Manipulate calc (from macros and externals)