diff --git a/.travis.yml b/.travis.yml
index 687822e..0a20ac6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,13 +10,13 @@ env:
 before_install:
   - sh -e /etc/init.d/xvfb start
 install:
+  - export PATH=/usr/bin:$PATH
   - sudo apt-get update
   - sudo apt-get -y install python3-pyqt5  
-  - sudo apt-get -y install python3-lxml  
   - sudo apt-get -y install pyqt5-dev-tools  
-  - pip install python-dateutil
-  - pip install pytz
-  - pip install cryptography
+  - sudo apt-get -y install python3-dateutil python3-cryptography python3-lxml
+  - sudo apt-get -y install python3-pip
+  - pip3 install pytz
   - git clone https://github.com/FreeOpcUa/python-opcua.git 
   - git clone https://github.com/FreeOpcUa/opcua-widgets.git 
 # command to run tests