Skip to content

pip install cyipopt error #1

Description

@GaoLon

Excellent work! When installing pkgs in requirements.txt, I got following error:

(rdf) ➜ RDF pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ -r requirements.txt
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
Collecting cyipopt==1.2.0 (from -r requirements.txt (line 1))
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4c/34/180b14dc521ae6a393c98d74d59afc79a7edc19a18721b69571843bfc495/cyipopt-1.2.0.tar.gz (46 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.4/46.4 kB 549.6 kB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
ERROR: Could not find a version that satisfies the requirement cython>=0.26 (from versions: none)
ERROR: No matching distribution found for cython>=0.26
/tmp/pip-install-p4_rrps6/cyipopt_f7db36761fa84ed88120fe6fc01ac0fc/setup.py:26: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************
  
  !!
    dist.Distribution().fetch_build_eggs(SETUP_REQUIRES)
  Traceback (most recent call last):
    File "/home/wt/anaconda3/envs/rdf/lib/python3.8/site-packages/setuptools/installer.py", line 101, in _fetch_build_egg_no_warn
      subprocess.check_call(cmd)
    File "/home/wt/anaconda3/envs/rdf/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['/home/wt/anaconda3/envs/rdf/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpnw438pev', '--quiet', 'cython>=0.26']' returned non-zero exit status 1.
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-p4_rrps6/cyipopt_f7db36761fa84ed88120fe6fc01ac0fc/setup.py", line 26, in <module>
      dist.Distribution().fetch_build_eggs(SETUP_REQUIRES)
    File "/home/wt/anaconda3/envs/rdf/lib/python3.8/site-packages/setuptools/dist.py", line 662, in fetch_build_eggs
      return _fetch_build_eggs(self, requires)
    File "/home/wt/anaconda3/envs/rdf/lib/python3.8/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
    File "/home/wt/anaconda3/envs/rdf/lib/python3.8/site-packages/pkg_resources/__init__.py", line 829, in resolve
      dist = self._resolve_dist(
    File "/home/wt/anaconda3/envs/rdf/lib/python3.8/site-packages/pkg_resources/__init__.py", line 865, in _resolve_dist
      dist = best[req.key] = env.best_match(
    File "/home/wt/anaconda3/envs/rdf/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1135, in best_match
      return self.obtain(req, installer)
    File "/home/wt/anaconda3/envs/rdf/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1147, in obtain
      return installer(requirement)
    File "/home/wt/anaconda3/envs/rdf/lib/python3.8/site-packages/setuptools/installer.py", line 103, in _fetch_build_egg_no_warn
      raise DistutilsError(str(e)) from e
  distutils.errors.DistutilsError: Command '['/home/wt/anaconda3/envs/rdf/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpnw438pev', '--quiet', 'cython>=0.26']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions