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

安装gpu版本报错 #526

Open
buttogo opened this issue Jul 14, 2023 · 1 comment
Open

安装gpu版本报错 #526

buttogo opened this issue Jul 14, 2023 · 1 comment

Comments

@buttogo
Copy link

buttogo commented Jul 14, 2023

Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
Traceback (most recent call last):
File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/_vendor/packaging/requirements.py", line 35, in init
parsed = _parse_requirement(requirement_string)
File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/_vendor/packaging/_parser.py", line 64, in parse_requirement
return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/_vendor/packaging/_parser.py", line 82, in _parse_requirement
url, specifier, marker = _parse_requirement_details(tokenizer)
File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/_vendor/packaging/_parser.py", line 132, in _parse_requirement_details
else "name and no valid version specifier"
File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/_vendor/packaging/_parser.py", line 149, in _parse_requirement_marker
span_start=span_start,
File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/_vendor/packaging/_tokenizer.py", line 168, in raise_syntax_error
span=span,
setuptools.extern.packaging._tokenizer.ParserSyntaxError: Expected end or semicolon (after name and no valid version specifier)
python_version>"3.7"
^

  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "<string>", line 36, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-cevqrdp3/tensorflow-gpu_b361e39377134e90b866f21e03d26714/setup.py", line 40, in <module>
      setuptools.setup()
    File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/__init__.py", line 106, in setup
      _install_setup_requires(attrs)
    File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/__init__.py", line 77, in _install_setup_requires
      dist.parse_config_files(ignore_option_errors=True)
    File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/dist.py", line 900, in parse_config_files
      self._finalize_requires()
    File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/dist.py", line 597, in _finalize_requires
      self._move_install_requirements_markers()
    File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/dist.py", line 637, in _move_install_requirements_markers
      inst_reqs = list(_reqs.parse(spec_inst_reqs))
    File "/app/anaconda3/envs/deepml/lib/python3.7/site-packages/setuptools/_vendor/packaging/requirements.py", line 37, in __init__
      raise InvalidRequirement(str(e)) from e
  setuptools.extern.packaging.requirements.InvalidRequirement: Expected end or semicolon (after name and no valid version specifier)
      python_version>"3.7"
                    ^
  [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.

@Xjh0327
Copy link

Xjh0327 commented Oct 25, 2023

如果你环境里已经安装了tf,应该是直接pip install -U deepctr就好
pip install deepctr[gpu]好像是会再给安装一个tf

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