comment 0

Troubleshooting Problems with Installing Seaborn

So I came across this problem in the Caribbean Developers facebook group and decided to challenge myself by trying it myself and see what my experience would be like. The objective is to install the Seaborn Python library and also using the offline install. The person was using pip install seaborn and getting an error that included the following

Connection to pypi.python. org timed out.

This is likely to be a proxy problem as indicated here but I continued with what I set out to do. I eventually got Seaborn installed but I had to use some unofficial Windows binaries. These are the problems I encountered and what I did to solve them. I am using Windows 10 Insider Preview, Visual Studio 2017 and (the latest for Windows) Python 3.6.0

Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools

I went into the Visual Studio installer and added the items related to C++

PermissionError: [WinError 5] Access is denied: ‘c:\\program files (x86)\\python36-32\\Lib\\site-packages\\numpy’

I opened the command prompt as administrator

RuntimeError: Broken toolchain: cannot link a simple C program

I used the Developer Command Prompt for VS 2017 (instead)

numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

I installed numpy+mkl and then scipy from here (this is unofficial and without warranty or support). The next step would be to figure out what Seaborn is used for and give it a try. Also I will try to figure out if there is an official or maybe better way to get this done. I had also installed VCForPython27 and cmake-3.8.0-rc2-win64-x64 but I don’t think those made a difference.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s