2017-08-17 1 views
1

J'ai accidentellement exécuté pip avec l'option --no-cache-dir. Maintenant, je cours dans le message d'erreur suivant lorsque j'essaie de déployer un projet sans serveur.Annulation de la désactivation du cache pip

The directory '/.cache/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 '/.cache/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. Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Uc5FLI/unroll/

est-il un moyen de réactiver la mise en cache pip?

Répondre

1

Vous avez exécuté sudo -H pip install; sudo a exécuté pip en tant que root et pip a changé la propriété de certains fichiers et répertoires sous votre répertoire personnel. Reprendre les fichiers:

sudo chown -R $USER $HOME