如何在MacOS High Sierra中使用pip安装virtualenv? [英] How to install virtualenv by using pip in MacOS High Sierra?

查看:101
本文介绍了如何在MacOS High Sierra中使用pip安装virtualenv?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用来安装virtualenv的命令:-

Command which i used to install virtualenv:-

sudo pip install virtualenv

结果:-

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

推荐答案

sudo -H pip install virtualenv

(科德兰的字面意思不是foo ...)

(kodlan didn't literally mean foo...)

这篇关于如何在MacOS High Sierra中使用pip安装virtualenv?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆