1. 程式人生 > >安裝notedown時出現"python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-By7yob/

安裝notedown時出現"python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-By7yob/

notedown外掛可以開啟Markdown檔案,用起來很方便。可是最近在Python2.7+caffe2環境下安裝notedown的時候卻出現了很多問題。

1.  Python3.6 + notedown

對於Python3.0以上的版本,可以直接

使用下面的指令

pip install notedown

或者用下面的指令

pip install https://github.com/mli/notedown/tarball/master

2.  Python2.7 + notedown

使用上面的方法在Python2.7環境下安裝notedown的時候,會出現下面的問題:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-By7yob/

本人經過多次實驗,最終發現是因為notedown的版本太高引起的,最新的notedown的版本為1.5.1,而Python2.7不能相容這個版本,將版本降低就可以解決問題:

pip install notedown==1.5.0