Pelican ImportError: No module named 'pelican'
Pelican ImportError: No module named 'pelican'
我正在按照此文档安装 Pelican http://docs.getpelican.com/en/3.7.1/quickstart.html
在这一步,出现导入错误。
cd ~/projects/yoursite/output
python -m pelican.server
导入错误:
MacBook-Air:output dorjee$ python3 -m pelican.server
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3: Error
while finding spec for 'pelican.server' (<class 'ImportError'>: No
module named 'pelican')
查看 pelican 版本时,我发现 python virtual env 没有激活。当它被激活时,错误消失了。
$ pelican --version
-bash: pelican: command not found `
$ source ~/Environments/pelicanenv/bin/activate
$ python3 -m pelican.server
127.0.0.1 - - [20/Sep/2017 23:08:49] "GET / HTTP/1.1" 200 - `
我正在按照此文档安装 Pelican http://docs.getpelican.com/en/3.7.1/quickstart.html
在这一步,出现导入错误。
cd ~/projects/yoursite/output
python -m pelican.server
导入错误:
MacBook-Air:output dorjee$ python3 -m pelican.server
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3: Error
while finding spec for 'pelican.server' (<class 'ImportError'>: No
module named 'pelican')
查看 pelican 版本时,我发现 python virtual env 没有激活。当它被激活时,错误消失了。
$ pelican --version
-bash: pelican: command not found `
$ source ~/Environments/pelicanenv/bin/activate
$ python3 -m pelican.server
127.0.0.1 - - [20/Sep/2017 23:08:49] "GET / HTTP/1.1" 200 - `