pip安装后,virtualenvwrapper.sh在哪里? [英] Where is virtualenvwrapper.sh after pip install?

查看:826
本文介绍了pip安装后,virtualenvwrapper.sh在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在OSX上设置virtualenvwrapper,我发现的所有说明和教程都告诉我向.profile添加源命令,指向virtualenvwrapper.sh.我已经检查了所有的python和site-packages目录,但找不到任何virtualenvwrapper.sh.这是我需要单独下载的东西吗? pip安装不正确吗?

I'm trying to setup virtualenvwrapper on OSX, and all the instructions and tutorials I've found tell me to add a source command to .profile, pointing towards virtualenvwrapper.sh. I've checked all the python and site-packages directories, and I can't find any virtualenvwrapper.sh. Is this something I need to download separately? Is pip not installing correctly?

这是/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenvwrapper的内容:

This is the contents of /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenvwrapper:

hook_loader.py      hook_loader.pyc     project.py      project.pyc     user_scripts.py     user_scripts.pyc

如您所见,没有virtualenvwrapper.sh.在哪里?

As you can see, no virtualenvwrapper.sh. Where is it?

推荐答案

您可以使用find命令搜索文件:

You can use the find command to search for a file:

find / -name virtualenvwrapper.sh

这将从根目录的所有目录中搜索文件.

This will search all directories from the root for the file.

在ubuntu 12.04 LTS上,通过pip安装,它已安装到

on ubuntu 12.04 LTS, installing through pip, it is installed to

/usr/local/bin/virtualenvwrapper.sh

在ubuntu 17.04上,以普通用户身份通过​​pip安装,并且已安装到

on ubuntu 17.04, installing through pip as a normal user, it is installed to

~/.local/bin/virtualenvwrapper.sh

这篇关于pip安装后,virtualenvwrapper.sh在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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