2017-10-03 1 views
-1

commande que je l'habitude d'installer virtualenv: -Comment installer virtualenv en utilisant pip dans MacOS High Sierra?

sudo pip install virtualenv 

Résultat: -

The directory '/Users/apple/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/apple/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. 

Requirement already satisfied: virtualenv in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages 
+2

Quelle est votre question? – the4kman

+0

J'essaye d'installer tensorflow sur mon mac mais sur la toute première étape 'sudo pip install virtualenv' il montre l'erreur ci-dessus. –

+0

J'ai ré-édité la question s'il vous plaît voir. –

Répondre

0

Si vous essayez de vous débarrasser de cette erreur en essayant de courir pip juste ajouter -h:

sudo -H pip install foo 
+0

Ça ne marche pas pour moi .. !! –

+0

'sudo -H pip installer foo' Collecting foo Impossible de trouver une version correspondant à l'exigence foo (à partir de versions:) Aucune distribution correspondante trouvée pour foo –

1
sudo -H pip install virtualenv 

(kodlan ne signifie pas littéralement foo ...)