已找到已解决的包

时间:2018-04-05 19:50:16

标签: python-3.x anaconda virtualenv pytorch

当我尝试执行conda env create -f virtual_platform_windows.yml时 它显示

ResolvePackageNotFound:
  - pytorch==0.1.12=py35_0.1.12cu80

我尝试为Windows安装pytorch但错误仍然存​​在。如何解决这个问题?

2 个答案:

答案 0 :(得分:2)

  • 在记事本中打开:virtual_platform_windows.yml
  • 删除: - pytorch = 0.1.12 = py35_0.1.12cu80
  • 删除: - 火炬== 0.1.12
  • 保存

使用Anaconda提示:

执行代码:conda env create -f virtual_platform_windows.yml

激活虚拟环境:source activate virtual_platform

使用conda install -c peterjc123 pytorch cuda80

单独安装Pytorch

将haas文件复制到脚本目录

答案 1 :(得分:0)

包和anaconda版本现已更新。所以pytorch版本0.1.12不再可供下载。它现在变成旧版本。但我仍然设法下载所有这些文件。请按照以下步骤操作:

第1步:通过 conda update -n base conda下载anaconda(最新版本)或更新anaconda。

第2步:在anaconda提示符中复制并粘贴以下命令并等待 下载。

conda install -c conda-forge ffmpeg 
conda install -c anaconda freetype    
conda install -c menpo imageio     
conda install -c anaconda libtiff     
conda install -c conda-forge olefile    
conda install -c anaconda pillow    
conda install -c peterjc123 vc    
conda install -c anaconda alabaster     
conda install -c anaconda astroid     
conda install -c patrickfuller openbabel     
conda install -c anaconda babel     
conda install -c conda-forge bleach     
conda install -c anaconda certifi     
conda install -c anaconda cffi     
conda install -c anaconda chardet     
conda install -c anaconda colorama     
conda install -c anaconda decorator     
conda install -c anaconda docutils     
conda install -c conda-forge entrypoints     
conda install -c anaconda html5lib     
conda install -c conda-forge icu     
conda install -c anaconda imagesize    
conda install -c anaconda ipykernel     
conda install -c anaconda ipython     
conda install -c anaconda ipython_genutils     
conda install -c anaconda isort     
conda install -c conda-forge jedi     
conda install -c anaconda jinja2     
conda install -c slobodan image     
conda install -c anaconda scikit-image     
conda install -c anaconda jpeg     
conda install -c conda-forge jsonschema     
conda install -c conda-forge jupyter_client     
conda install -c conda-forge jupyter_core     
conda install -c anaconda lazy-object-proxy     
conda install -c anaconda libpng     
conda install -c conda-forge markupsafe     
conda install -c conda-forge mistune     
conda install -c anaconda mkl     
conda install -c anaconda nbconvert     
conda install -c anaconda nbformat     
conda install -c anaconda numpy     
conda install -c anaconda numpydoc     
conda install -c anaconda openssl     
conda install -c intel pandocfilters     
conda install -c intel path.py     
conda install -c anaconda pickleshare     
conda install -c anaconda pip     
conda install -c anaconda prompt_toolkit     
conda install -c anaconda psutil     
conda install -c conda-forge pycodestyle     
conda install -c conda-forge pycparser     
conda install -c anaconda pyflakes     
conda install -c anaconda pygments     
conda install -c anaconda pylint     
conda install -c anaconda pyqt     
conda install -c anaconda python     
conda install -c conda-forge python-dateutil     
conda install -c anaconda pytz     
conda install -c anaconda pyzmq     
conda install -c anaconda qt     
conda install -c anaconda qtawesome     
conda install -c anaconda qtconsole     
conda install -c anaconda qtpy     
conda install -c conda-forge requests     
conda install -c anaconda rope     
conda install -c anaconda setuptools     
conda install -c conda-forge simplegeneric     
conda install -c anaconda singledispatch     
conda install -c anaconda sip     
conda install -c conda-forge six     
conda install -c anaconda snowballstemmer     
conda install -c anaconda sphinx     
conda install -c anaconda sphinxcontrib     
conda install -c conda-forge sphinxcontrib-websupport     
conda install -c anaconda spyder     
conda install -c anaconda testpath     
conda install -c anaconda tornado     
conda install -c intel traitlets     
conda install -c intel vs2015_runtime     
conda install -c conda-forge wcwidth     
conda install -c anaconda wheel     
conda install -c anaconda win_unicode_console     
conda install -c conda-forge wincertstore     
conda install -c conda-forge wrapt     
conda install -c anaconda zlib     
conda install -c menpo opencv3     
conda install -c peterjc123 pytorch     
conda install -c conda-forge opencv

第3步:如果以上任何命令无效,请在anaconda网站上检查该特定命令的更新conda安装,或者只在google.com上输入该命令。