[Risolto][Python/Ubuntu - Problema Misto] Unable to correct problems, you have held broken packages

Linguaggi di programmazione: php, perl, python, C, bash e tutti gli altri.
Scrivi risposta
TommyB1992
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 852
Iscrizione: domenica 7 luglio 2013, 15:55
Desktop: GNU/Linux
Distribuzione: Ubuntu 22.04.2 LTS
Sesso: Maschile

[Risolto][Python/Ubuntu - Problema Misto] Unable to correct problems, you have held broken packages

Messaggio da TommyB1992 »

Codice: Seleziona tutto

tomas@tomas-tobefilledbyoem:~/Desktop/Projects/play$ pip install mysqlclient
Keyring is skipped due to an exception: 'keyring.backends'
Collecting mysqlclient
  Using cached mysqlclient-2.1.1.tar.gz (88 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/tomas/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gy7x2joo/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gy7x2joo/mysqlclient/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-install-gy7x2joo/mysqlclient/pip-egg-info                  
         cwd: /tmp/pip-install-gy7x2joo/mysqlclient/                                                                  
    Complete output (15 lines):                                                                                       
    /bin/sh: 1: mysql_config: not found                                                                               
    /bin/sh: 1: mariadb_config: not found                                                                             
    /bin/sh: 1: mysql_config: not found                                                                               
    Traceback (most recent call last):                                                                                
      File "<string>", line 1, in <module>                                                                            
      File "/tmp/pip-install-gy7x2joo/mysqlclient/setup.py", line 15, in <module>                                     
        metadata, options = get_config()                                                                              
      File "/tmp/pip-install-gy7x2joo/mysqlclient/setup_posix.py", line 70, in get_config                             
        libs = mysql_config("libs")                                                                                   
      File "/tmp/pip-install-gy7x2joo/mysqlclient/setup_posix.py", line 31, in mysql_config                           
        raise OSError("{} not found".format(_mysql_config_path))                                                      
    OSError: mysql_config not found                                                                                   
    mysql_config --version                                                                                            
    mariadb_config --version                                                                                          
    mysql_config --libs                                                                                               
    ----------------------------------------                                                                          
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
E quindi:

Codice: Seleziona tutto

tomas@tomas-tobefilledbyoem:~/Desktop/Projects/play$ mysql_config --version
Command 'mysql_config' not found, but can be installed with:
sudo apt install libmysqlclient-dev     # version 8.0.33-0ubuntu0.22.04.2, or
sudo apt install libmariadb-dev-compat  # version 1:10.6.12-0ubuntu0.22.04.1
tomas@tomas-tobefilledbyoem:~/Desktop/Projects/play$ sudo apt install libmysqlclient-dev
Reading package lists... Done
Building dependency tree... Done
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:
 libzstd-dev : Depends: libzstd1 (= 1.4.8+dfsg-3build1) but 1.5.2+dfsg-1 is to be installed
E: Unable to correct problems, you have held broken packages.

Diciamo che ho risolto installando pymysql.
Scrivi risposta

Ritorna a “Programmazione”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 8 ospiti