IOError:[Errno 2]没有这样的文件或目录:'自述文件.rst'

2024-05-16 00:46:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用pip安装django_注释,但出现了此错误(在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

Tags: pipdjangoinpyinfoegglocalsetup
2条回答

我通过使用以下方法将django contrib comments模块版本从1.6降级到1.5,从而解决了这个问题:

pip uninstall django-contrib-comments
pip install django-contrib-comments==1.5

您可以使用以下命令直接从github安装此包:

$ pip install -e git+https://github.com/marazmiki/django-comments.git#egg=django-comments

相关问题 更多 >