[Numpy-discussion] Installing numpy

Lianyuan Zheng lianyuanz at gmail.com
Mon Dec 14 09:14:23 EST 2020


Hello,

When I run the command "python numpy install", it shows the following error:

Traceback (most recent call last):
  File "setup.py", line 27, in <module>
    import versioneer
  File "./numpy/versioneer.py", line 1739
    file=sys.stderr)
        ^
SyntaxError: invalid syntax

Is this caused by the python version installed too old (v2.7.17) or other?

Thanks in advance!
Lianyuan

On Fri, Dec 11, 2020 at 2:49 PM Stanley Seibert <sseibert at anaconda.com>
wrote:

> The development version of NumPy from Github requires Python 3.7 or later.
>
> On Fri, Dec 11, 2020 at 1:35 PM Lianyuan Zheng <lianyuanz at gmail.com>
> wrote:
>
>> Hello,
>>
>> On my linux server, I downloaded the NUMPY package from GitHub (git clone
>> https://github.com/numpy/numpy.git) and then accessed the directory
>> "numpy".  When I typed command "python setup.py install", it shows the
>> following message:
>>
>>   File "setup.py", line 51
>>     f"NumPy {VERSION} may not yet support Python "
>>                                                  ^
>> SyntaxError: invalid syntax
>>
>> Obviously the installation failed.  Which python version is needed for
>> this numpy package?  The python version installed is version 2.7.5.
>>
>> Thanks,
>> Lianyuan
>>
>>
>>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at python.org
>> https://mail.python.org/mailman/listinfo/numpy-discussion
>>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20201214/501e8fd1/attachment-0001.html>


More information about the NumPy-Discussion mailing list