Jump to content

Can't install any Python lib in Data Lab

Tim Wolf

Recommended Posts

I'm trying to install some python libs in Seeq Data Lab. But I receive the same error(see screenshot) for every library, that I try to install.
I also tried:

import sys
!{sys.executable} -m pip install xlwt


Thanks for any help!



Link to comment
Share on other sites

  • 3 weeks later...

Thanks for your help guys!
So I tried the code from stackoverflow: 

pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org xlwt

Unfortunately I received the same error again. Then I checked with my It helpdesk and they said that, it's fine for other users. But they ask me if you need  any proxy settings within the console or system to make it work?

Link to comment
Share on other sites

  • 8 months later...

Although i know it is already quite a few months off, but I thought I should write something up maybe for future users.

You would need the proxy enabled on your Data lab Server and also the https://pypi.org need to be added to the whitelisted site for the firewall to allow the traffic to pass through.

Once you are done with that You can use the following command to make sure you are directing the terminal to forcefully use the Proxy

pip install xlwt --proxy http://proxyserver:port 

if you are looking to make it global run this before the above one.

export PYTHONUSERBASE=/seeq/python/global-packages

you can run this under the new terminal from the datalab. 

the above helped me over come the same error. Hope it helps.

Edited by Muhammad Atiyab
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...