我有一个没有virtualenv的Django项目。现在迁移到virtualenv,以前创建的我的requirements.txt非常庞大,无法安装在virtualenv中(很多错误如下所示)。如何生成所需软件包的最小清单?还是在任何地方都有参考?
Could not find any downloads that satisfy the requirement PIL==1.1.7 (from -r requirements.txt (line 8))
Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
No distributions at all found for PIL==1.1.7 (from -r requirements.txt (line 8))
不仅是PIL会引发错误,如果我对它进行注释,则另一个程序包会显示错误,并且我不知道什么真正可以使我的应用程序正常工作。
提前致谢!
您可以运行pip freeze
(与virtualenv之前使用的系统python相关),这将为您提供已安装软件包的列表;
然后使用以下内容过滤该列表:
1)INSTALLED_APPS
在设置中
2)还检查所有内容from
并import
声明(搜索项目)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句