我在osx 10.6.8上,并尝试使用bash来安装virtualenvwrapper,并且正在回复神秘的反馈(至少对我而言)。 我能够安装virtualenv。
也许有人可以指出我正确的方向......
安装失败的输出:
Downloading/unpacking virtualenvwrapper
运行package virt.info egg_info for package virtualenvwrapper
Installed /private/tmp/pip_build_root/virtualenvwrapper/pbr-0.5.23-py2.6.egg
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py:245: UserWarning: Module pbr was already imported from /tmp/easy_install-xuBV6G/pbr-0.5.23/pbr/__init__.py, but /private/tmp/pip_build_root/virtualenvwrapper/pbr-0.5.23-py2.6.egg is being added to sys.path
working_set.add(dist)
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/tmp/pip_build_root/virtualenvwrapper/setup.py", line 7, in <module>
pbr=True,
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 113, in setup
_setup_distribution = dist = klass(attrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py", line 223, in __init__
_Distribution.__init__(self,attrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 270, in __init__
self.finalize_options()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py", line 256, in finalize_options
ep.load()(self, ep.name, value)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1907, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named core
Complete output from command python setup.py egg_info:
已安装/private/tmp/pip_build_root/virtualenvwrapper/pbr-0.5.23-py2.6.egg
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py:245:UserWarning:模块pbr已从/tmp/easy_install-xuBV6G/pbr-0.5导入.23 / pbr / init .py,但/private/tmp/pip_build_root/virtualenvwrapper/pbr-0.5.23-py2.6.egg正被添加到sys.path
working_set.add(DIST)
追踪(最近一次呼叫最后一次):
文件“”,第16行,
文件“/private/tmp/pip_build_root/virtualenvwrapper/setup.py”,第7行,
pbr=True,
文件“/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py”,第113行,在设置中
_setup_distribution = dist = klass(attrs)
文件“/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py”,第223行, init
_Distribution.__init__(self,attrs)
文件“/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py”,第270行, init
self.finalize_options()
文件“/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py”,第256行,在finalize_options中
ep.load()(self, ep.name, value)
文件“/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py”,第1907行,正在加载
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError:没有名为core
的模块清理...... 命令python setup.py egg_info失败,错误代码为1 / private / tmp / pip_build_root / virtualenvwrapper 存储完整的登录/Users/admin/Library/Logs/pip.log
答案 0 :(得分:0)
使用pbr
全局更新pip install -U pbr
包解决了导入问题。