我尝试使用pip来安装django_comments,然后发生了这个错误(在virtualenv @Windows中运行): 回溯:
(env) E:\mdknowledge>pip install django-comments
Collecting django-comments
Using cached django-comments-1.0.0.b.tar.bz2
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "c:\users\dell\appdata\local\temp\pip-build-pi1rwb\django-comments\setup.py", line 18, in <module> long_description = open('README.rst').read(),
IOError: [Errno 2] No such file or directory: 'README.rst'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\dell\appdata\local\temp\pip-build-pi1rwb\django-comments
答案 0 :(得分:1)
您可以使用以下命令直接从github安装此软件包:
$ pip install -e git+https://github.com/marazmiki/django-comments.git#egg=django-comments
答案 1 :(得分:0)
我通过使用以下方法将我的django-contrib-comments模块版本从1.6降级到1.5来解决了这个问题:
pip uninstall django-contrib-comments
pip install django-contrib-comments==1.5