install error

782 views
Skip to first unread message

haom...@umich.edu

unread,
Feb 5, 2019, 2:52:23 AM2/5/19
to Biogeme
I had this install error and stuck for a long time:
 
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for biogeme
  Running setup.py clean for biogeme
Failed to build biogeme
Installing collected packages: biogeme
  Running setup.py install for biogeme ... error
    Complete output from command c:\users\vic_h\.julia\v0.6\conda\deps\usr\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\vic_h\\AppData\\Local\\Temp\\pip-install-hqtxxtv5\\biogeme\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\vic_h\AppData\Local\Temp\pip-record-b3cbrrc1\install-record.txt --single-version-externally-managed --compile:
    Not using Cython
    running install
    running build
.........
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "c:\users\vic_h\.julia\v0.6\conda\deps\usr\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\vic_h\\AppData\\Local\\Temp\\pip-install-hqtxxtv5\\biogeme\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\vic_h\AppData\Local\Temp\pip-record-b3cbrrc1\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\vic_h\AppData\Local\Temp\pip-install-hqtxxtv5\biogeme\


I used python version 3.7.0, also I reinstall the VC++ build tools and upgrade the related things.

How can I solve this problem?
Thanks!

haom...@umich.edu

unread,
Feb 5, 2019, 2:54:02 AM2/5/19
to Biogeme
  I came up with this error and I have stucked here for a long time:
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

I came up with this error and I have stucked here for a long time.
I have already downloaded pthread.h, and also reinstall the VC++ build tools.  I used the version 3.7.0 of python.

How can I solve this probelm?
Thanks!

Michel Bierlaire

unread,
Feb 5, 2019, 5:02:56 AM2/5/19
to haom...@umich.edu, Michel Bierlaire, Biogeme
Compiling on Windows is a real pain. In principle, if your version of python is 3.7, pip should install the executable without the need for compiling. 



--
You received this message because you are subscribed to the Google Groups "Biogeme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biogeme+u...@googlegroups.com.
To post to this group, send email to bio...@googlegroups.com.
Visit this group at https://groups.google.com/group/biogeme.
For more options, visit https://groups.google.com/d/optout.

tran viet Yen

unread,
Mar 1, 2019, 2:41:39 AM3/1/19
to Biogeme
Want to share some experience with you. I have tried to install PandasBiogeme in windows 7 32 bit. It ends up with some errors related to the cl.exe file path or the requirement of VC++ 14 and so on. Finding remedies on the python forums did not give any answers. Finally, I install it on the windows 7 64bit and it was successful. Although it is also a pain for windows reinstalling, but my case would be helpful if you have another 64bit OS like in my situation. 
Yen.

Vào 16:52:23 UTC+9 Thứ Ba, ngày 05 tháng 2 năm 2019, haom...@umich.edu đã viết:

Michel Bierlaire

unread,
Mar 1, 2019, 2:47:16 AM3/1/19
to tranv...@gmail.com, Michel Bierlaire, Biogeme
Compiling on Windows is a mess. 
If you follow the instructions in the video https://youtu.be/1TlNrhS2rFo it should go smoothly,
It is important to check that you have the correct version of Python (3.7) as the executable are available only for this version. 



Reply all
Reply to author
Forward
0 new messages