Author Topic: pip install BRAILS  (Read 18763 times)

jsaw

  • Newbie
  • *
  • Posts: 15
    • View Profile
pip install BRAILS
« on: April 13, 2021, 04:24:12 PM »
Hello, I'm currently having difficulties installing BRAILS. I have Python 3.7.6 so I downloaded Fiona-1.8.18-cp37-cp37m-win_amd64.whl and GDAL-3.2.2-cp37-cp37m-win_amd64.whl. However, the pip install BRAILS is taking too long/running into an error. What might be the issues causing this problem? Thank you in advance!

(posted earlier in forum post "Queries about BRAILS installation")
« Last Edit: April 14, 2021, 03:30:54 AM by jsaw »

charles

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: pip install BRAILS taking too long
« Reply #1 on: April 13, 2021, 05:18:24 PM »
Hi jsaw, what do you see if you run pip install in the command line, instead of the notebook?

jsaw

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: pip install BRAILS taking too long
« Reply #2 on: April 13, 2021, 10:56:14 PM »
Hello, this is what I get:

charles

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: pip install BRAILS taking too long
« Reply #3 on: April 14, 2021, 12:16:32 AM »
It says pycocotools can not be installed...
It requires Microsoft Visual C++ 14.0
Get it with "Build Tools for Visual Studio" : https://visualstudio.microsoft.com/downloads/


Before that, maybe you can try this:
pip install pycocotools-windows
(I got it from here: https://stackoverflow.com/questions/52920222/could-not-install-pycocotools-in-windows-fatal-error-c1083-cannot-open-include)

jsaw

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: pip install BRAILS
« Reply #4 on: April 14, 2021, 05:39:23 AM »
Thank you, I was able to get pip install BRAILS to work.

I still have a problem, where BRAILS seems to have been installed but BRAILS modules are not found. (screenshot below) What might be the issue here?

charles

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: pip install BRAILS
« Reply #5 on: April 14, 2021, 02:32:17 PM »
Can you share how you solved your first problem, i.e., did you install Microsoft Visual C++ 14.0 or you did
pip install pycocotools-windows?

For the new error, try this if you are using conda:
conda install shapely

I got it from here: https://stackoverflow.com/questions/13144158/python-geos-and-shapely-on-windows-64

jsaw

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: pip install BRAILS
« Reply #6 on: April 14, 2021, 11:01:31 PM »
Thank you again for the help! Yes, I had to install Microsoft Visual C++ 14.0.