Through cmd help('modules') is showing pip in the list but while doing pip install getting Syntax Error in Windows8,64 bit, Python3.4
>>> pip install pandas
File "<stdin>", line 1
pip install pandas
^
SyntaxError: invalid syntax
>>>
That error message looks like it's from the python interpreter. This means that you must exit()
out of python before attempting to install pandas
:
>>> exit()
C:\...> pip install pandas
However, you can install a module using python, if you really want to:
import pip
pip.main(['install', 'pandas'])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.