___ ___ ___ ___ _____ ___
| \_ _/ __|_ _|_ _/ __|
| |) | | (_ || | | | \__ \
|___/___\___|___| |_| |___/ 5.0.0-rc.1
Traceback (most recent call last):
File "/home/jj/anaconda2/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/jj/anaconda2/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/jj/digits/digits/__main__.py", line 66, in <module>
main()
File "/home/jj/digits/digits/__main__.py", line 49, in main
import digits.config
File "digits/config/__init__.py", line 7, in <module>
from . import caffe
File "digits/config/caffe.py", line 13, in <module>
from digits.utils import parse_version
File "digits/utils/__init__.py", line 158, in <module>
from . import constants, image, time_filters, errors, forms, routing, auth
File "digits/utils/forms.py", line 5, in <module>
import wtforms
ImportError: No module named wtforms
哪个python
/家庭/ JJ / anaconda2 / bin中/蟒
哪个点 /家庭/ JJ / anaconda2 / bin中/ PIP
但是 sudo pip install wtforms
The directory '/home/jj/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/jj/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): wtforms in /usr/lib/python2.7/dist-packages
这可能是路径问题......你能帮帮忙..?
答案 0 :(得分:0)
这是virtualenv的规范用例之一。因为您使用sudo进行安装,所以现在有两个可以安装项目的路径:用户和根路径。
尝试创建virtualenv:
然后从virtualenv内部进行pip安装。