Pytorch安装结果在python setup.py egg_info中

时间:2018-08-18 10:10:57

标签: python python-3.x pip anaconda pytorch

我正在尝试运行:

pip3 install --no-cache-dir torch

但得到:

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Bla\AppData\Local\Temp\pip-install-hcy4wtm0\torch\

Google搜索给出的结果有冲突,我尝试了其中一些。顺便说一句,我有一个崭新的Anaconda安装。

PS:

因此我们确定了我应该使用的功能,我之前也曾尝试过:

conda install pytorch -c pytorch 
pip3 install torchvision

我现在遇到的错误是:

CondaHTTPError: HTTP 404 NOT FOUND for url <https://pypi.python.org/simple/noarch/repodata.json>
Elapsed: 00:00.119647

The remote server could not find the noarch directory for the
requested channel with url: https://pypi.python.org/simple

As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
empty. please request that the channel administrator create
`noarch/repodata.json` and associated `noarch/repodata.json.bz2` files.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json

You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state.
Further configuration help can be found at <https://conda.io/docs/config.html>.

A reportable application error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?

0 个答案:

没有答案