Category Archives: python

Virtualenv in PyCharm

Run below code, we can check what package we have under current environment. import subprocess p = subprocess.Popen([‘pip’, ‘list’], stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() print out In PyCharm -> Project Interpreter -> list box Project Interpreter, here are all the python environments: Under system button, select Create VirtualEnv Now, we have new virtual environment. Let’s… Read More »