2016-03-09 36 views
11

Ho bisogno di alcuni pacchetti da installare. Non importa quale direzione proverò, peggiora solo.PyCharm: installazione pacchetti non riuscita

enter image description here

prega di aiuto.

40:497: execution error: The directory '/Users/doekewartena/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/doekewartena/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Could not find a version that satisfies the requirement path (from versions:) No matching distribution found for path (1)

+0

Provare a eseguire pycharm da bash con 'sudo -H' aggiunto in primo piano. – NoOneIsHere

+0

@NoOneIsHere quindi intendi "sudo -H install string" come questo? – alwaysaskingquestions

+0

@alwaysaskingquestions No, 'sudo -H pycharm'. – NoOneIsHere

risposta

6

Hai controllato il pacchetto di autorizzazioni file per il tuo utente?

è possibile eseguire il seguente comando per cambiare la proprietà della directory (/Users/doekewartena/Library/Caches/pip) per l'utente corrente (doekewartena):

$ sudo chown -R doekewartena /Users/doekewartena/Library/Caches/pip 
+2

Dopo questo comando ho ancora lo stesso errore. – clankill3r

+0

anch'io! Sto avendo lo stesso errore anche dopo che ho fatto quello che hai menzionato qui ... – alwaysaskingquestions

2

pip install --user <package-name> ha lavorato per me.

Sudo non richiesto.

+0

Il modo in cui installi un pacchetto dipende molto dalla configurazione del singolo utente. Per favore considera di rielaborare questa risposta per essere più specifico alla domanda. – axlj

Problemi correlati