Fail to install using pip
XikunZhang opened this issue · comments
Xikun Zhang commented
I tried to install using pip install
or pip install git+https://github.com/stonesjtu/pytorch_memlab
and in both cases got this error:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-sx0xf6jy/pandas/setup.py", line 333
f"{extension}-source file '{sourcefile}' not found.\n"
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-sx0xf6jy/pandas/
Kaiyu Shi commented
It looks like the installation of pandas failed, could you plz try pip install pandas first and see if the error still exists.
Xikun Zhang commented
Yeah, I tried that and the error still exists.
…On Sat, Jan 9, 2021 at 7:15 AM Kaiyu Shi ***@***.***> wrote:
It looks like the installation of pandas failed, could you plz try pip
install pandas first and see if the error still exists.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://mailtrack.io/trace/link/5b598d8ad85bd4ed97c60da406871b0498bc98a6?url=https%3A%2F%2Fgithub.com%2FStonesjtu%2Fpytorch_memlab%2Fissues%2F29%23issuecomment-757301594&userId=3748990&signature=85fbbe672c21b305>,
or unsubscribe
<https://mailtrack.io/trace/link/b92a62fef02805c62ce1332f1e7cfa345c9943fa?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGE4WBMDK26UT5J2RZZ4S33SZBXI7ANCNFSM4VYHSJQA&userId=3748990&signature=59d4f0d7cde7d9f6>
.
Kaiyu Shi commented
It's probably because you are using the pip of python2 and python2 does not support f-string AFAIK. Can you try the python3 version via pip3 install xxx
.
FYI:
https://community.opalstack.com/d/247-use-pip3-install-user-pandas-instead-of-pip
Xikun Zhang commented
pip3
does not work either. I solved this by upgrading my pip
. Previously it was version 8.1.1
, and now it is 20.3.1
. Thanks for the reply though!