--brew install python3. Installed under / usr / local / Celler with sudo --A state in which an arbitrary environment test is created and activated with pyvenv --pip3 install jinja2 (or mako) and the library is included. --Pip3 freeze also shows the above library
I can load standard modules, but I can't load modules installed with pip (3).
Traceback (most recent call last):
File "example.py", line 9, in <module>
from jinja2 import Template
ImportError: No module named 'jinja2'
Add to sys.path and load
#!/usr/bin/env python
# coding: utf-8
import sys
sys.path.append('/usr/local/lib/python3.3/site-packages')
from jinja2 import Template
assert Template
http://stackoverflow.com/questions/20099481/python3-importerror-no-module-named-myfile
Recommended Posts