Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Django 没有名为VirtualEnvrapper的模块_Django_Python 2.7_Installation_Virtualenv_Virtualenvwrapper - Fatal编程技术网

Django 没有名为VirtualEnvrapper的模块

Django 没有名为VirtualEnvrapper的模块,django,python-2.7,installation,virtualenv,virtualenvwrapper,Django,Python 2.7,Installation,Virtualenv,Virtualenvwrapper,我已经安装了Django 1.9.7,它工作正常,但是每次打开终端,我都会收到这样的消息 If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenvwrapper has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly. 当我在Django启动

我已经安装了Django 1.9.7,它工作正常,但是每次打开终端,我都会收到这样的消息

If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.
当我在Django启动项目时,效果很好。我想知道这是否会在将来引起问题,我如何才能解决它

我推测这是因为我曾经将Python2.7与Django 1.9.7一起使用。我最近通过python升级到了2.4,但我的计算机中似乎仍然存在我的python 2.7包。然而,当我尝试使用pip uninstall python==2.7删除python 2.7包时,我遇到了这个错误

Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in   main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/uninstall.py", line 76, in run
    requirement_set.uninstall(auto_confirm=options.yes)
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 336, in uninstall
    req.uninstall(auto_confirm=auto_confirm)
  File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 742, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 267, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
    copystat(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/var/folders/f7/jrgwm7ms037f4v9lydh4cjcr0000gn/T/pip-dSXtam-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/Python-2.7.10-py2.7.egg-info'
我已经读到使用pip卸载软件包是不好的,因为它确实卸载了所有东西,但我不知道其他方法如何完成,也不知道如何解决模块问题