Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

"pip install pyarrow" returns syntax error [closed]

Writer Matthew Harrington

i already try to use linux cod on python.with importcommand.whats your idea to improve .do I use .os to import? how do i use it to install pyarrow in python.how can I install it atlink like windows ? import sys

pip install pyarrow File "", line 1 pip install pyarrow ^ SyntaxError: invalid syntax

1

1 Answer

You are adding that at the wrong location.

On the python command line you use pyarrow by doing this:

>>> import sys
>>> import pyarrow

If you get ...

Traceback (most recent call last): File "<stdin>", line 1, in <module>
ImportError: No module named pyarrow

you can use pip to install it from the linux command line so do a

>>> exit()

if you are still using that and on the $ do a ...

$ pip install pyarrow

and it will install it. If you also get a /bin/sh: pip: not found you will also need to 1st install pip with apt...

sudo easy_install pip
4