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

查看:63
本文介绍了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天全站免登陆