Python Forum
pip installing package using c++ boost in windows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip installing package using c++ boost in windows
#1
I'm trying to install the dionysus package in windows.
I've installed Visual studio 2017 (to get the c++ compiler), I've installed boost and it works if I link the directory in the VS editor.

But as soon as I try installing (from VS x64 native tools command prompt)
Quote:pip install dionysus
I get an error

Quote:...
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
...

What happens is that that the cl compiler does not know where boost is installed. I've tried fresh installing at least 10 times and searched through the internet, but still do not know how to tell the compiler in the pip process that boost is located at c:/boost.
Reply
#2
There is a issue reported.
Author @mrzv reply that he has not tested in Windows.

In setup.py
if platform.system() == "Windows":
    cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
    if cmake_version < '3.1.0':
        raise RuntimeError("CMake >= 3.1.0 is required on Windows")
So it look for CMake,
What happens after that is a little sketchy,as Author @mrzv has never tested his library in Windows.
So maybe quicker to use VirtualBox and fire up a linux distro.
Reply
#3
(Feb-16-2018, 05:54 PM)snippsat Wrote: There is a issue reported.
Author @mrzv reply that he has not tested in Windows.

In setup.py
if platform.system() == "Windows":
    cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
    if cmake_version < '3.1.0':
        raise RuntimeError("CMake >= 3.1.0 is required on Windows")
So it look for CMake,
What happens after that is a little sketchy,as Author @mrzv has never tested his library in Windows.
So maybe quicker to use VirtualBox and fire up a linux distro.

Yes, I am running it in virtual box, but I got a bit tired of that, since I plan to work with the module quite a lot and I'm running some cpu intensive simulations, which the virtual os is not that happy about.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to see dependencies before installing a package? quazirfan 4 1,024 Dec-06-2022, 02:50 PM
Last Post: snippsat
  Installing Qt for Python. (On Windows 10) davediamond 22 4,359 Apr-18-2022, 06:50 AM
Last Post: ndc85430
  Unable to import sklearn after installing any package ilango 0 1,160 Oct-25-2021, 07:03 AM
Last Post: ilango
  Installing auto-sklearn on Windows 10 Led_Zeppelin 1 2,620 Apr-15-2021, 08:02 PM
Last Post: bowlofred
  Need help installing infoblox-client on Windows 10 dazmac10 1 2,482 Mar-07-2021, 10:57 PM
Last Post: snippsat
  Embedding python cause crash when use boost::asio multi threading udvatt108 0 1,694 Oct-04-2020, 03:15 PM
Last Post: udvatt108
  error while installing any library using pip in windows AkashKansal 1 4,334 Sep-24-2020, 07:51 AM
Last Post: buran
  installing python in windows 10 martynarthur2102 1 1,618 Aug-22-2020, 01:53 PM
Last Post: buran
  Installing a python package using pip anthonymoss78 0 1,774 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Installing a new package using pip in conda environment firebolt7 1 2,482 Nov-18-2019, 12:31 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020