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

No matching distribution found for tsp_2opt #1

Open
NicolasMICAUX opened this issue Jul 12, 2023 · 4 comments
Open

No matching distribution found for tsp_2opt #1

NicolasMICAUX opened this issue Jul 12, 2023 · 4 comments

Comments

@NicolasMICAUX
Copy link

Did

$ pip install tsp_2opt
ERROR: Could not find a version that satisfies the requirement tsp_2opt (from versions: none)
ERROR: No matching distribution found for tsp_2opt

as stated here https://pypi.org/project/tsp_2opt/

Has the name changed?

I also tried: %pip install git+https://github.com/mehdibnc/TSP2opt

ERROR: git+https://github.com/mehdibnc/TSP2opt does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
@NicolasMICAUX
Copy link
Author

I added a setup.py in a fork of your repo, crediting you.

I can now install the library using %pip install git+https://github.com/NicolasMICAUX/TSP2opt.git
One file is missing in solver.py: from .tsp_2opt import solver_2opt_parr returns an error.

I built the lib.rs library using cargo build, no errors, only warnings.
It generates lots of folders, amoàng which 2 files:

TSP2opt/target/debug/libtsp_2opt.d
TSP2opt/target/debug/libtsp_2opt.so

I can't figure out how to use those 2 files. I know python well, and a bit of Rust, but i'm not familiar with python bindings in Rust.

Hope you'll be able to help :)

@NicolasMICAUX
Copy link
Author

Something else: I saw in cargo.toml that this library is intended for OS X? Is it only tested for OS X or are there libs used that can only work for OS X?
The compilation went fine on my Ubuntu machine.

@mehdibnc
Copy link
Owner

mehdibnc commented Jul 23, 2023 via email

@NicolasMICAUX
Copy link
Author

No problem. I used another library written in C++ that supports 2opt and is fast.
Thanks for your answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants