"pip install pyarrow" returns syntax error [closed]
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
1pip install pyarrow File "", line 1 pip install pyarrow ^ SyntaxError: invalid syntax
1 Answer
You are adding that at the wrong location.
On the python command line you use pyarrow by doing this:
>>> import sys
>>> import pyarrowIf you get ...
Traceback (most recent call last): File "<stdin>", line 1, in <module>
ImportError: No module named pyarrowyou 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 pyarrowand 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