簡體   English   中英

Python PIP 安裝 Ray 時出現問題 - 車輪 package 不可用

[英]Python PIP issue when installing Ray - The wheel package is not available

我正在嘗試安裝 Ray - 這可以通過簡單的pip install ray來完成

在安裝過程中,軟件包會被正確下載並安裝,直到它到達gpustat

Python 版本:3.8.7

操作系統:Linux(更具體地說是cflinuxfs3)

這是堆棧跟蹤

 Downloading https://masked-package-path/packages/packages/b4/69/gpustat-0.6.0.tar.gz (78 kB)
       ERROR: Command errored out with exit status 1:
        command: /tmp/contents295671398/deps/0/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tdlwfmx8/gpustat/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tdlwfmx8/gpustat/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-4yij8vu9
            cwd: /tmp/pip-install-tdlwfmx8/gpustat/
       Complete output (22 lines):
       WARNING: The wheel package is not available.
       Traceback (most recent call last):
         File "<string>", line 1, in <module>
         File "/tmp/pip-install-tdlwfmx8/gpustat/setup.py", line 91, in <module>
           setup(
         File "/tmp/contents295671398/deps/0/python/lib/python3.8/site-packages/setuptools/__init__.py", line 164, in setup
           _install_setup_requires(attrs)
         File "/tmp/contents295671398/deps/0/python/lib/python3.8/site-packages/setuptools/__init__.py", line 159, in _install_setup_requires
           dist.fetch_build_eggs(dist.setup_requires)
         File "/tmp/contents295671398/deps/0/python/lib/python3.8/site-packages/setuptools/dist.py", line 699, in fetch_build_eggs
           resolved_dists = pkg_resources.working_set.resolve(
         File "/tmp/contents295671398/deps/0/python/lib/python3.8/site-packages/pkg_resources/__init__.py", line 779, in resolve
           dist = best[req.key] = env.best_match(
         File "/tmp/contents295671398/deps/0/python/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1064, in best_match
           return self.obtain(req, installer)
         File "/tmp/contents295671398/deps/0/python/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1076, in obtain
           return installer(requirement)
         File "/tmp/contents295671398/deps/0/python/lib/python3.8/site-packages/setuptools/dist.py", line 758, in fetch_build_egg
           return fetch_build_egg(self, req)
         File "/tmp/contents295671398/deps/0/python/lib/python3.8/site-packages/setuptools/installer.py", line 83, in fetch_build_egg
           raise DistutilsError('the `allow-hosts` option is not supported '
       distutils.errors.DistutilsError: the `allow-hosts` option is not supported when using pip to install requirements.
       ----------------------------------------
   ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
   **ERROR** Could not install pip packages: could not run pip: exit status 1

另外,我嘗試安裝wheel (因為警告說它丟失了)但沒有運氣。

關於gpustat-0.6.0 的任何已知問題?

我有一個類似的錯誤,但它是由 gpustat 對 pytest-runner 的要求引起的。

運行pip install pytest-runner為我修復了它。 只是分享以防其他人有這個問題。

注意:這是通過公司代理完成的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM