2015-06-23 76 views
1

我使用的是虚拟环境中的蟒蛇内project.I可以很容易地安装Django在it.Initially当我输入“点子冻结”命令,则这是结果 -我无法在Django项目的虚拟环境中安装django-allauth?

Django==1.8 
wheel==0.24.0 

现在,当我安装的Django allauth使用PIP那么这些错误扔了 -

File "/home/user/project/env/local/lib/python2.7/site-packages/pip/req/req_install.py", line 256, in link 
self._link = self._wheel_cache.cached_wheel(link, self.name) 
    File "/home/user/project/env/local/lib/python2.7/site-packages/pip/wheel.py", line 63, in cached_wheel 
self._cache_dir, link, self._format_control, package_name) 
    File "/home/user/project/env/local/lib/python2.7/site-packages/pip/wheel.py", line 124, in cached_wheel 
wheel_names = os.listdir(root) 
OSError: [Errno 13] Permission denied: '/home/user/.cache/pip/wheels/8e/2c/02/5f7eb1a476cd75481801f52a0770262ed00573f48d830a4713' 

我猜它是与我创建的虚拟环境,但我不知道如何解决它里面传来预装轮包。

+0

您是否有效激活了您的环境? – Filly

+0

@Filly - 是的,我激活了环境。事实上我也安装了Django。 – akg

回答

1

我猜你的车轮配置已经搞乱了,并试图将车轮写入你无权访问的目录。可能是这个目录中已经存在django和wheel包,但allauth不是。

您应该试试pip install上的--no-use-wheel选项。

相关问题