Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMAC3 version 1.4 working in windows 10 #952

Closed
carlosricardocm opened this issue Mar 25, 2023 · 2 comments
Closed

SMAC3 version 1.4 working in windows 10 #952

carlosricardocm opened this issue Mar 25, 2023 · 2 comments
Assignees
Labels
documentation Documentation is needed/added.
Milestone

Comments

@carlosricardocm
Copy link

carlosricardocm commented Mar 25, 2023

Description

HI, for all you guys that want to use this library in Windows, I succesfully install it in Windows 10 and 11.

Steps/Code to Reproduce

The steps for install it are as follows:

  1. Create an environment with
    conda create -n SMAC python=3.9.7 (but also could work with python 3.10)

  2. Install swig version 4.1.1 and add to path globally
    http://prdownloads.sourceforge.net/swig/swigwin-4.1.1.zip

  3. Install m2w64-gcc as compiler
    conda install -c conda-forge m2w64-gcc

  4. Install smac ver. 1.4 with pip (version 2.0 won't work)
    pip install smac=1.4

  5. Search where pip installed smac ( with $pip list -v you could find where is installed, in my case is in d:\anaconda3\envs\audio\lib\site-packages ) and in the source code
    search for string dates changing colons for hypens (because in windows is imposible create folders o files that contains colons )

Expected Results

Libary working in Windows 10

Actual Results

I succesfully run examples of optimization using the following libraries:

from ConfigSpace import Configuration, ConfigurationSpace, UniformIntegerHyperparameter, UniformFloatHyperparameter
from smac.scenario.scenario import Scenario
from smac.facade.smac_bb_facade import SMAC4BB as BBFacade
from smac.facade.smac_hpo_facade import SMAC4HPO as HPOFacade
from smac.initial_design.default_configuration_design import DefaultConfiguration

Versions

smac 1.4

@alexandertornede alexandertornede added the documentation Documentation is needed/added. label Apr 17, 2023
@alexandertornede alexandertornede added this to the v2.1 milestone Apr 17, 2023
@drdaxxy
Copy link

drdaxxy commented Nov 10, 2023

I had no problems installing and using SMAC3 from the development branch on Windows 10 natively (i.e. no WSL2) -- with MSVC, not GCC.

In a Developer PowerShell from VS2019 Build Tools, Python 3.10 conda environment (full Anaconda distribution, not miniconda, no idea if that matters):

& 'C:\Users\USER\anaconda3\shell\condabin\conda-hook.ps1'
conda activate my-env
conda install swig
git clone https://github.com/automl/SMAC3
cd SMAC3
git checkout development
pip install .

(I also installed stable 2.0.2 while troubleshooting something else, but didn't really try running it, so can't confirm whether that works.)

@benjamc benjamc self-assigned this Oct 22, 2024
@benjamc benjamc mentioned this issue Oct 24, 2024
@benjamc
Copy link
Collaborator

benjamc commented Oct 24, 2024

Closed by #1155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation is needed/added.
Projects
Status: Done
Development

No branches or pull requests

4 participants