установить цифры nvidia - ImportError: нет модуля с именем wtforms

  ___ ___ ___ ___ _____ ___
 |   \_ _/ __|_ _|_   _/ __|
 | |) | | (_ || |  | | \__ \
 |___/___\___|___| |_| |___/ 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

какой питон

/дом/JJ/anaconda2/бин/питон

какой пункт
/home/jj/anaconda2/bin/pip

Но 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

Это может быть проблема с путями ... Не могли бы вы помочь ..?


person user6918955    schedule 17.10.2016    source источник
comment
Есть ли /usr/lib/python2.7/dist-packages в вашем пути к python?   -  person John Gordon    schedule 17.10.2016


Ответы (1)


Это один из канонических вариантов использования virtualenv. Поскольку вы используете sudo для установки, теперь есть два потенциальных пути, по которым могут быть установлены элементы: пользовательский и корневой пути.

Попробуйте создать виртуалку:

затем установите pip изнутри virtualenv.

person Noah Gift    schedule 17.10.2016