【Python问题】“python setup.py egg_info“ failed with error code 1

“python setup.py egg_info” failed with error code 1

前言

学习python就是要解决基本工作需要,开始解决办公需要,excel,world,ppt等问题;所以尝试使用pandas,基本可以解决一些问题;

当我安装pandas时后,发现如下问题:

cooper@cooper:~$ pip install pandas
Collecting pandas
  Downloading https://files.pythonhosted.org/packages/58/58/b729eda34f78060e14cb430c91d4f7ba3cf1e34797976877a3a1125ea5b2/pandas-1.3.4.tar.gz (4.7MB)
    100% |████████████████████████████████| 4.7MB 285kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "", line 1, in 
      File "/tmp/pip-build-cFeCgz/pandas/setup.py", line 249
        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-cFeCgz/pandas/
You are using pip version 8.1.1, however version 21.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

安装失败,然后尝试提示的命令,依然失败

cooper@cooper:~$ pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/00/5f/d6959d6f25f202e3e68e3a53b815af42d770c829c19382d0acbf2c3e2112/pip-21.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "", line 1, in 
      File "/tmp/

你可能感兴趣的:(Python,python,ubuntu)