Skip to content

Commit 026c39f

Browse files
committed
Try Travis support suggestion for py3
Hi Christopher, Thank you for reaching out and sorry to hear about the troubles. Regarding the pip3 error, it was indeed caused by our image updates. We've cleaned-up the way we set-up the Python environment and now strictly enforce Python version use using pyenv. Which means that if you want to use a different Python version than the system one (which is 2.7.6), you have to explicitly specify it. Adding a "before_install: pyenv global 3.5" step to your travis.yml should switch the system version and make pip3 work without installing any additional packages.
1 parent 614671d commit 026c39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# http://stackoverflow.com/questions/22111549/travis-ci-with-clang-3-4-and-c11/30925448#30925448
77
# to allow C++11, though we are not yet building with -std=c++11
88

9+
before_install: pyenv global 3.5
910
install:
1011
- if [[ $TRAVIS_OS_NAME == osx ]]; then
1112
brew update;
@@ -38,7 +39,6 @@ addons:
3839
- g++-4.9
3940
- clang-3.5
4041
- valgrind
41-
- python3
4242
os:
4343
- linux
4444
language: cpp

0 commit comments

Comments
 (0)