ho un problema con il pip install di un progetto python.
Mi trovo su un'installazione di Debian 10 pulita.
Ecco cosa ho fatto e l'errore:
- ho installato PostgreSQL - 12 seguendo questa guida https://codingpub.dev/ubuntu-install-po ... d-pgadmin/
ho installato Python 3.7.5 scaricando il targz ed eseguento il configure, make e make install
ho creato il venv del progetto su una directory dedicata tramite Pycharm puntando all'installazione del Python-3.7.5 installato
Codice: Seleziona tutto
Using cached psycopg2-2.8.6.tar.gz (383 kB)
ERROR: Command errored out with exit status 1:
command: /home/palla/Documents/Fusilli/src/fusilli-backend-module/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lwh6v20e/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lwh6v20e/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-mn1tp3ww
cwd: /tmp/pip-install-lwh6v20e/psycopg2/
Complete output (7 lines):
running egg_info
creating /tmp/pip-pip-egg-info-mn1tp3ww/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-mn1tp3ww/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-mn1tp3ww/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-mn1tp3ww/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-mn1tp3ww/psycopg2.egg-info/SOURCES.txt'
Error: b'You need to install postgresql-server-dev-NN for building a server-side extension or libpq-dev for building a client-side application.\n'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Come posso procedere per eseguire il mio progetto python?
Da notare che ho eseguito l'installazione di libpq-dev come richiesto, ma ho il seguente errore:
Codice: Seleziona tutto
sudo apt-get install libpq-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpq-dev : Depends: libpq5 (= 11.9-0+deb10u1) but 13.0-1.pgdg100+1 is to be installed
E: Unable to correct problems, you have held broken packages.