我已经安装了pyhash,为什么总是说它找不到该模块?谁能帮我?无法在Travis CI上构建python项目
这里是我的.travis.yml:
language: python
before_install:
- sudo apt-get -qq update
- sudo apt-get install libboost-all-dev
python:
- "2.7"
install:
- sudo pip install pyhash
script: py.test
这是我的项目目录:
/bloom
__init__.py
/src
__init__.py
f1.py
f2.py
/test
__init__.py
test_f1.py
test_f2.py
的错误信息是:
ImportError: No module named pyhash
但我见过它安装在cmd窗口中。
请出示错误产生的问题。而且我认为你不需要sudo和pip - 只需'pip install'就足够了。 – phd
如果你没有启用它,你在Travis中如何使用'sudo'? –
我已经尝试添加sudo启用,它仍然不起作用 – preyta