Hi,
this error occurs when I try to install with the command:
pip install -r requirements.txt
pip install -r requirements.txt
Collecting astroid==2.4.2 (from -r requirements.txt (line 1))
Using cached astroid-2.4.2-py3-none-any.whl (213 kB)
Collecting attrs==20.1.0 (from -r requirements.txt (line 2))
Using cached attrs-20.1.0-py2.py3-none-any.whl (49 kB)
Collecting Automat==20.2.0 (from -r requirements.txt (line 3))
Using cached Automat-20.2.0-py2.py3-none-any.whl (31 kB)
Collecting autopep8==1.5.4 (from -r requirements.txt (line 4))
Using cached autopep8-1.5.4.tar.gz (121 kB)
Preparing metadata (setup.py) ... done
Collecting cffi==1.14.2 (from -r requirements.txt (line 5))
Using cached cffi-1.14.2.tar.gz (470 kB)
Preparing metadata (setup.py) ... done
Collecting click==7.1.2 (from -r requirements.txt (line 6))
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting constantly==15.1.0 (from -r requirements.txt (line 7))
Using cached constantly-15.1.0-py2.py3-none-any.whl (7.9 kB)
Collecting cryptography==3.3.2 (from -r requirements.txt (line 8))
Using cached cryptography-3.3.2-cp36-abi3-manylinux2010_x86_64.whl (2.6 MB)
Collecting cssselect==1.1.0 (from -r requirements.txt (line 9))
Using cached cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting hyperlink==20.0.1 (from -r requirements.txt (line 10))
Using cached hyperlink-20.0.1-py2.py3-none-any.whl (48 kB)
Collecting idna==2.10 (from -r requirements.txt (line 11))
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting incremental==17.5.0 (from -r requirements.txt (line 12))
Using cached incremental-17.5.0-py2.py3-none-any.whl (16 kB)
Collecting isort==5.5.1 (from -r requirements.txt (line 13))
Using cached isort-5.5.1-py3-none-any.whl (95 kB)
Collecting itemadapter==0.1.0 (from -r requirements.txt (line 14))
Using cached itemadapter-0.1.0-py3-none-any.whl (7.0 kB)
Collecting itemloaders==1.0.2 (from -r requirements.txt (line 15))
Using cached itemloaders-1.0.2-py3-none-any.whl (11 kB)
Collecting jmespath==0.10.0 (from -r requirements.txt (line 16))
Using cached jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting joblib==0.16.0 (from -r requirements.txt (line 17))
Using cached joblib-0.16.0-py3-none-any.whl (300 kB)
Collecting lazy-object-proxy==1.4.3 (from -r requirements.txt (line 18))
Using cached lazy-object-proxy-1.4.3.tar.gz (34 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting lxml==4.6.3 (from -r requirements.txt (line 19))
Using cached lxml-4.6.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.9 MB)
Collecting mccabe==0.6.1 (from -r requirements.txt (line 20))
Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting nltk==3.5 (from -r requirements.txt (line 21))
Using cached nltk-3.5.zip (1.4 MB)
Preparing metadata (setup.py) ... done
Collecting parsel==1.6.0 (from -r requirements.txt (line 22))
Using cached parsel-1.6.0-py2.py3-none-any.whl (13 kB)
Collecting Protego==0.1.16 (from -r requirements.txt (line 23))
Using cached Protego-0.1.16.tar.gz (3.2 MB)
Preparing metadata (setup.py) ... done
Collecting psycopg2==2.8.5 (from -r requirements.txt (line 24))
Using cached psycopg2-2.8.5.tar.gz (380 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
/home/frederikl/.venv/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in "setup.cfg"
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
By 2023-Oct-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
parsed = self.parsers.get(option_name, lambda x: x)(value)
running egg_info
creating /tmp/pip-pip-egg-info-d6lklmfq/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-d6lklmfq/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-d6lklmfq/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-d6lklmfq/psycopg2.egg-info/top_level.txt
writing manifest file /tmp/pip-pip-egg-info-d6lklmfq/psycopg2.egg-info/SOURCES.txt
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in setup.cfg.
If you prefer to avoid building psycopg2 from source, please install the PyPI
psycopg2-binary package instead.
For further information please check the doc/src/install.rst file (also at
<https://www.psycopg.org/docs/install.html>).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
It could be that I am missing something.
I couldn't find any solutions online. pip Python and setup-tools are up to date.
Frederik
Hi,
this error occurs when I try to install with the command:
pip install -r requirements.txtIt could be that I am missing something.
I couldn't find any solutions online. pip Python and setup-tools are up to date.
Frederik