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
  Embedding python cause crash when use boost::asio multi threading udvatt108 0 207 Oct-04-2020, 03:15 PM
Last Post: udvatt108
  error while installing any library using pip in windows AkashKansal 1 233 Sep-24-2020, 07:51 AM
Last Post: buran
  installing python in windows 10 martynarthur2102 1 224 Aug-22-2020, 01:53 PM
Last Post: buran
  Installing a python package using pip anthonymoss78 0 176 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Installing a new package using pip in conda environment firebolt7 1 592 Nov-18-2019, 12:31 PM
Last Post: snippsat
  Installing pip windows 10 jcg36 9 1,162 Sep-13-2019, 12:44 PM
Last Post: snippsat
  Compiling a Python Package on Windows nagymusic 2 1,095 Jan-29-2019, 12:08 AM
Last Post: nagymusic
  pip not installing any package on windows royhimo855 0 1,294 Dec-10-2018, 07:58 AM
Last Post: royhimo855
  Installing and running a python web scraping app from github to a windows 8.1 system eugenioca 17 2,931 Oct-06-2018, 08:14 AM
Last Post: eugenioca
  Error while installing python3.6.4 on windows 10 SaurabhMaheshwari 1 1,424 Feb-18-2018, 09:36 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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