2016-10-17 3 views
0
___ ___ ___ ___ _____ ___ 
| \_ _/ __|_ _|_ _/ __| 
| |) | | (_ || | | | \__ \ 
|___/___\___|___| |_| |___/ 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 

하는 파이썬엔비디아의 숫자를 설치하지 - ImportError를을 : 없음 모듈 이름 wtforms

/홈/JJ/anaconda2/빈/파이썬
/홈/JJ/anaconda2/빈/핍 핍

그러나 sudo를 설치 PIP 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

pythonpath에서'/ usr/lib/python2.7/dist-packages'입니까? –

답변

0

이것은 virtualenv의 표준 사용 사례 중 하나입니다. sudo를 사용하여 설치하기 때문에 항목을 설치할 수있는 두 가지 경로가 사용자 및 루트 경로입니다.

는 VIRTUALENV를 만들어보십시오 :

다음 내부 VIRTUALENV에서 설치 핍.

관련 문제