Error when trying to install openjij on pip on Google Colab

Asked 2 years ago, Updated 2 years ago, 181 views

I tried to import openjij in Google Collection, but it didn't work.
The commands you executed are as follows:

 pip install openjij

When I did this, I received the following error:

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting openjij
  Downloading openjij -0.5.1.tar.gz (2.3MB)
     |████████████████████████████████| 2.3 MB 5.3 MB/s 
  Installing build dependencies... done
  Getting requirements to build wheel... done
    Preparing wheel metadata... done
Collecting typing-extensions <4.3.0, > = 4.2.0
  Using cached typing_extensions -4.2.0-py3-none-any.whl (24kB)
Collecting jij-cimod <1.5.0, > = 1.4.1
  Downloading jij_cimod-1.4.3.tar.gz (83kB)
     |████████████████████████████████| 83 kB 76 kB/s 
  Installing build dependencies... done
  Getting requirements to build wheel... done
    Preparing wheel metadata... done
Collecting scipy<1.9.0,>=1.7.3
  Downloading script-1.7.3-cp37-cp37m-manylinux_2_12_x86_64.manylinux 2010_x86_64.whl (38.1 MB)
     |████████████████████████████████| 38.1 MB 1.2 MB/s 
Collecting dimod<=0.10.17
  Downloading dimod-0.10.17-cp37-cp37m-manylinux_2_12_x86_64.manylinux 2010_x86_64.whl (13.2 MB)
     |████████████████████████████████| 13.2 MB 34.6 MB/s 
Requirement already satified: numpy<1.23.0 in/usr/local/lib/python 3.7/dist-packages (from openjij)(1.21.6)
Collecting requests <2.29.0, >=2.28.0
  Downloading requests -2.28.0-py3-none-any.whl (62 kB)
     |████████████████████████████████| 62 kB 614 kB/s 
Collecting pyparsing <3.0.0, > = 2.4.7
  Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
     |████████████████████████████████| 67 kB 6.9 MB/s 
Requirement already satified: charset-normalizer ~=2.0.0 in/usr/local/lib/python 3.7/dist-packages (from requests <2.29.0,>=2.28.0->openjij) (2.0.12)
Requirement already satified: certifi>=2017.4.17 in/usr/local/lib/python 3.7/dist-packages (from requests <2.29.0, >=2.28.0-> openjij) (2022.6.15)
Requirement already satified: idna<4,>=2.5 in/usr/local/lib/python 3.7/dist-packages (from requests<2.29.0,>=2.28.0->openjij)(2.10)
Requirement already satified: urlib3<1.27,>=1.21.1 in/usr/local/lib/python 3.7/dist-packages (from requests<2.29.0,>=2.28.0->openjij) (1.24.3)
Building wheels for collected packages: openjij, jij-cimod
  Building wheel for openjij (PEP517) ... error
  ERROR: Failed building wheel for openjij
  Building wheel for jij-cimod (PEP517) ...cancelled

The following sites were used as reference:

Introduction to OpenJij

Thank you for your reply.

google-colaboratory pip

2022-09-30 19:44

1 Answers

I don't know why, but if you look at the openjij Home URL, the Google Colab Configuration and Installation section says to do the following:

!pip install-Ucmake
! pip uninstall openjij-y
! pip install openjij --no-binary:all:--no-cache-dir

Why don't you follow this and try it?

In my Google Colab environment (as of July 11, 2022, the latest version seems to have been released on July 1) I could only install pip install openjij.


2022-09-30 19:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.