我是编程新手 - 喜欢它。在Mac OSX Lion上,我已经用pip安装了virtualenv,它可以工作。 但是pip install virtualenvwrapper显示警告然后错误:/Library/Python/2.7/site-packages/virtualenvwrapper:Permission denied
$ pip install virtualenvwrapper正在下载/解包 virtualenvwrapper正在下载virtualenvwrapper-4.1.1.tar.gz(81kB): 81kB下载运行setup.py egg_info包 virtualenvwrapper
/ pibrary/Python/2.7/site-packages中的Installed /private/var/folders/6v/3cyz6tp514b2mqt02wc8x9k40000gn/T/pip_build_lynnrasmussen/virtualenvwrapper/pbr-0.5.23-py2.7.egg [pbr] Processing SOURCES.txt warning: LocalManifestMaker: standard file '-c' not found warning: no files found matching 'AUTHORS' warning: no files found matching 'ChangeLog' warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.gitreview' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no files found matching '*.html' under directory 'docs' warning: no files found matching '*.css' under directory 'docs' warning: no files found matching '*.js' under directory 'docs' warning: no files found matching '*.png' under directory 'docs' Requirement already satisfied (use --upgrade to upgrade): virtualenv
(来自virtualenvwrapper) 下载/解压缩virtualenv-clone(来自virtualenvwrapper)
正在下载virtualenv-clone-0.2.4.tar.gz正在运行setup.py egg_info 对于包virtualenv-clone 下载/拆包装卸工具(来自virtualenvwrapper)下载装卸工具-0.13.tar.gz(760kB):已下载760kB运行 package.py egg_info for package stevedoreInstalled /private/var/folders/6v/3cyz6tp514b2mqt02wc8x9k40000gn/T/pip_build_lynnrasmussen/stevedore/pbr-0.5.23-py2.7.egg [pbr] Processing SOURCES.txt warning: LocalManifestMaker: standard file '-c' not found warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.gitreview' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no files found matching '*.py' under directory 'tests' Installing collected packages: virtualenvwrapper, virtualenv-clone,
stevedore为virtualenvwrapper运行setup.py install [pbr]重用现有的SOURCES.txt 将构建/脚本-2.7 / virtualenvwrapper.sh的模式从644更改为755 将构建/脚本-2.7 / virtualenvwrapper_lazy.sh的模式从644更改为755 跳过/Library/Python/2.7/site-packages/virtualenvwrapper/init.py的安装 (命名空间包) 错误:/ Library /Python/2.7/site-packages/virtualenvwrapper:权限被拒绝 从命令/ usr / bin / python -c完成输出“import setuptools; file ='/ private / var / folders / 6v / 3cyz6tp514b2mqt02wc8x9k40000gn / T / pip_build_lynnrasmussen / virtualenvwrapper / setup.py'; exec(编译(开放(的文件)。读()。替换( '\ r \ N', '\ n'),文件,'exec'))“install --record /var/folders/6v/3cyz6tp514b2mqt02wc8x9k40000gn/T/pip-EJKEQQ-record/install-record.txt --single-版本外部管理: 正在运行安装
运行构建
运行build_py
创建构建
创建build / lib
创建build / lib / virtualenvwrapper
复制virtualenvwrapper / init .py - >建立/ LIB / virtualenvwrapper
复制virtualenvwrapper / hook_loader.py - > 建立/ LIB / virtualenvwrapper
复制virtualenvwrapper / project.py - >建立/ LIB / virtualenvwrapper
复制virtualenvwrapper / user_scripts.py - > 建立/ LIB / virtualenvwrapper
运行egg_info
将要求写入virtualenvwrapper.egg-info / requires.txt
写virtualenvwrapper.egg-info / PKG-INFO
将namespace_packages写入 virtualenvwrapper.egg-方式/ namespace_packages.txt
将顶级名称写入virtualenvwrapper.egg-info / top_level.txt
将dependency_links写入 virtualenvwrapper.egg-方式/ dependency_links.txt
将入口点写入virtualenvwrapper.egg-info / entry_points.txt
[pbr]重用现有的SOURCES.txt
运行build_scripts
创建build / scripts-2.7
复制virtualenvwrapper.sh - >建立/脚本-2.7
复制virtualenvwrapper_lazy.sh - >建立/脚本-2.7
将build / scripts-2.7 / virtualenvwrapper.sh的模式从644更改为 755
从644更改build / scripts-2.7 / virtualenvwrapper_lazy.sh的模式 至755
运行install_lib
跳过安装 /Library/Python/2.7/site-packages/virtualenvwrapper/init.py (命名空间包)
复制virtualenvwrapper / hook_loader.py - > /Library/Python/2.7/site-packages/virtualenvwrapper
错误:/ Library /Python/2.7/site-packages/virtualenvwrapper:权限 拒绝
答案 0 :(得分:2)
您应该以超级用户身份安装。
尝试:
sudo pip install virtualenvwrapper