(pgqa) raphy@pc:~/pythonMatters/PathGenerator$ conda install pytorch torchvision torchaudio cpuonly -c pytorch
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.1
Current channels:
- https://conda.anaconda.org/pytorch/linux-64
- https://conda.anaconda.org/pytorch/noarch
- https://repo.anaconda.com/pkgs/main/linux-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/linux-64
- https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
(pgqa) raphy@pc:~/pythonMatters/PathGenerator$ python3 --version
Python 3.10.0
嘗試使用 pip 安裝 PyTorch,但出現以下錯誤:
(pgqa) raphy@pc:~/pythonMatters/PathGenerator$ pip3 install torch==1.10.0 cpu
torchvision==0.11.1 cpu torchaudio==0.10.0 cpu -f https://download.pytorch.org
/whl/cpu/torch_stable.html
Looking in links: https://download.pytorch.org/whl/cpu/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.10.0 cpu (from versions: none)
ERROR: No matching distribution found for torch==1.10.0 cpu
作業系統:Ubuntu 20.04
點子版本:
(pgqa) raphy@pc:~$ pip --version
pip 21.2.4 from /home/raphy/anaconda3/envs/pgqa/lib/python3.10/site-packages/pip (python 3.10)
(pgqa) raphy@pc:~$ pip3 --version
pip 21.2.4 from /home/raphy/anaconda3/envs/pgqa/lib/python3.10/site-packages/pip (python 3.10)
蟒蛇版本:
(pgqa) raphy@pc:~$ python --version
Python 3.10.0
如果最新的穩定 python 版本是 3.10 ,為什么它要求 python3.1 ?如何解決問題?
uj5u.com熱心網友回復:
你試過升級你的pip嗎?
它適用于以下命令和版本:
$ python --version
Python 3.8.10
$ pip --version
pip 21.3.1
$ pip install torch==1.10.0 cpu torchvision==0.11.1 cpu torchaudio==0.10.0 cpu -f 
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/370497.html
標籤:Python 乌本图 火炬 康达 python-3.10
上一篇:PermissionError:[Errno13]權限被拒絕:盡管在Dockerfile中授予權限-可能是什么問題?
