【问题标题】:install nvidia digits - ImportError: No module named wtforms安装 nvidia 数字 - ImportError:没有名为 wtforms 的模块
【发布时间】:2017-02-25 20:55:29
【问题描述】:
  ___ ___ ___ ___ _____ ___
 |   \_ _/ __|_ _|_   _/ __|
 | |) | | (_ || |  | | \__ \
 |___/___\___|___| |_| |___/ 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

哪个蟒蛇

/home/jj/anaconda2/bin/python

哪个点
/home/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

可能是路径问题...您能帮忙吗...?

【问题讨论】:

  • 你的pythonpath中有/usr/lib/python2.7/dist-packages吗?

标签: python deep-learning nvidia caffe digits


【解决方案1】:

这是 virtualenv 的典型用例之一。因为您使用 sudo 进行安装,所以现在有两个可能的安装项目的路径:用户路径和根路径。

尝试创建一个虚拟环境:

然后从 virtualenv 内部进行 pip 安装。

【讨论】:

    猜你喜欢
    • 2015-01-21
    • 2016-12-07
    • 2015-12-22
    • 2015-10-04
    • 2019-06-24
    • 2016-05-21
    • 2023-03-06
    • 2016-10-26
    • 1970-01-01
    相关资源
    最近更新 更多