- bask
- Feb 22
pip install <package> does not work from the python console.
Using Pycharm 2.7 on Windows 7
File "<console>", line 1
pip install flask
^
SyntaxError: invalid syntax
So, is this the expected behavior? I would like to use the python console to install / uninstall packages...
I think I have the virutalenv configured correctly, but when I do a pip install I get the following:
===
Python interpreter info:
C:\Data\Proj_fd_aa\venv\Scripts\python.exe -u C:\Program Files (x86)\JetBrains\PyCharm 2.7\helpers\pydev\pydevconsole.py 60886 60887
PyDev console: starting.
import sys; print('Python %s on %s' % (sys.version, sys.platform))
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
sys.path.extend(['C:\\Data\\Proj_fd_aa'])
Using Pycharm 2.7 on Windows 7
pip install flask
File "<console>", line 1
pip install flask
^
SyntaxError: invalid syntax
So, is this the expected behavior? I would like to use the python console to install / uninstall packages...
I think I have the virutalenv configured correctly, but when I do a pip install I get the following:
===
Python interpreter info:
C:\Data\Proj_fd_aa\venv\Scripts\python.exe -u C:\Program Files (x86)\JetBrains\PyCharm 2.7\helpers\pydev\pydevconsole.py 60886 60887
PyDev console: starting.
import sys; print('Python %s on %s' % (sys.version, sys.platform))
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
sys.path.extend(['C:\\Data\\Proj_fd_aa'])
The Python console is a console for entering Python code, not shell commands. If you want to install Flask from within PyCharm, go to Settings | Python Interpreters and press the "Install" button.
--
Dmitry Jemerov, Chief Technology Officer, JetBrains
Dmitry Jemerov, Chief Technology Officer, JetBrains
<< Newer