Error when running pip install python setup py egg info

0 votes

Hi Guys,

I am trying to install pandas in my Windows system, but It shows me the below error

and my C++ version is

How can I solve thiss problem?

Sep 21, 2020 in Python by Anqi
• 120 points
1,808 views

Hi, @Anqi,

Could you please tell me which version of python you are working with? 

Hi @Gitika , thank you for your reply, my version is python 3.9

@Anqi,

How is your numpy installed? I would recommend using conda if you aren't already. Numpy sometimes has issues building on Windows.

1 answer to this question.

0 votes
ERROR: Command errored out with exit status 1:
     command: 'c:\users\administrator\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-1o2q05tc\\gdal\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-1o2q05tc\\gdal\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\pip-record-ai_ogwjo\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\administrator\appdata\local\programs\python\python39\Include\gdal'
         cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-1o2q05tc\gdal\
    Complete output (32 lines):
    WARNING: numpy not available!  Array support will not be enabled
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.9
    copying gdal.py -> build\lib.win-amd64-3.9
    copying ogr.py -> build\lib.win-amd64-3.9
    copying osr.py -> build\lib.win-amd64-3.9
    copying gdalconst.py -> build\lib.win-amd64-3.9
    creating build\lib.win-amd64-3.9\osgeo
    copying osgeo\gdal.py -> build\lib.win-amd64-3.9\osgeo
    copying osgeo\gdalconst.py -> build\lib.win-amd64-3.9\osgeo
    copying osgeo\gdalnumeric.py -> build\lib.win-amd64-3.9\osgeo
    copying osgeo\gdal_array.py -> build\lib.win-amd64-3.9\osgeo
    copying osgeo\gnm.py -> build\lib.win-amd64-3.9\osgeo
    copying osgeo\ogr.py -> build\lib.win-amd64-3.9\osgeo
    copying osgeo\osr.py -> build\lib.win-amd64-3.9\osgeo
    copying osgeo\__init__.py -> build\lib.win-amd64-3.9\osgeo
    c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\setuptools\lib2to3_ex.py:36: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.
      warnings.warn(
    Fixing build\lib.win-amd64-3.9\gdal.py build\lib.win-amd64-3.9\ogr.py build\lib.win-amd64-3.9\osr.py build\lib.win-amd64-3.9\gdalconst.py build\lib.win-amd64-3.9\osgeo\gdal.py build\lib.win-amd64-3.9\osgeo\gdalconst.py build\lib.win-amd64-3.9\osgeo\gdalnumeric.py build\lib.win-amd64-3.9\osgeo\gdal_array.py build\lib.win-amd64-3.9\osgeo\gnm.py build\lib.win-amd64-3.9\osgeo\ogr.py build\lib.win-amd64-3.9\osgeo\osr.py build\lib.win-amd64-3.9\osgeo\__init__.py
    Skipping optional fixer: ws_comma
    Fixing build\lib.win-amd64-3.9\gdal.py build\lib.win-amd64-3.9\ogr.py build\lib.win-amd64-3.9\osr.py build\lib.win-amd64-3.9\gdalconst.py build\lib.win-amd64-3.9\osgeo\gdal.py build\lib.win-amd64-3.9\osgeo\gdalconst.py build\lib.win-amd64-3.9\osgeo\gdalnumeric.py build\lib.win-amd64-3.9\osgeo\gdal_array.py build\lib.win-amd64-3.9\osgeo\gnm.py build\lib.win-amd64-3.9\osgeo\ogr.py build\lib.win-amd64-3.9\osgeo\osr.py build\lib.win-amd64-3.9\osgeo\__init__.py
    Skipping optional fixer: ws_comma
    running build_ext
    building 'osgeo._gdal' extension
    building 'osgeo._gdalconst' extension
    building 'osgeo._osr' extension
    building 'osgeo._ogr' extension
    building 'osgeo._gnm' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\administrator\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-1o2q05tc\\gdal\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-1o2q05tc\\gdal\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administrator\AppData\Local\Temp\pip-record-ai_ogwjo\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\administrator\appdata\local\programs\python\python39\Include\gdal' Check the logs for full command output.
answered Oct 28, 2020 by anonymous

Hi, @There, 

You need to add the package containing the executable pg_config.

Related Questions In Python

0 votes
3 answers
0 votes
2 answers
0 votes
11 answers
0 votes
1 answer

Equivalent for easy_install & pip

For pip you can check the User ...READ MORE

answered Nov 28, 2018 in Python by SDeb
• 13,290 points
259 views
0 votes
2 answers