Skip to content

No module named 'miplearn.instance.base'; 'miplearn.instance' is not a package #8

Answered by iSoron
HuigenYe asked this question in Help & FAQ
Discussion options

You must be logged in to vote

Hi @qwqjvruo, this is probably a package installation issue. Could you try the following:

# Create a new conda environment
$ conda create -n miplearn-test python=3.7

# Activate environment
$ conda activate miplearn-test

# Install miplearn
$ pip install miplearn

# Launch python and access TSP problem generator
$ python
>>> from miplearn.problems.tsp import TravelingSalesmanGenerator

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HuigenYe
Comment options

Answer selected by HuigenYe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants