本来昨天应该有个记录的,哪知道,上午开会,下午修跑步机,晚上累趴了,就早点休息了!
今天明天又得开两天会,没办法,废话不多说,抽空赶快记录下学习的东东吧
torch库
- 先看问题吧,常规动作,安装先,unix下刚折腾完前面的东东,不想再跑回去折腾,就这边win下弄吧,等会还开会呢,懒得切换了
>pip install torch
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting torch
Using cached https://files.pythonhosted.org/packages/5f/e9/bac4204fe9cb1a002ec6140b47f51affda1655379fe302a1caef421f9846/torch-0.1.2.post1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\lsh\appdata\local\temp\pip-install-cdi5vj\torch\setup.py", line 11, in <module>
raise RuntimeError(README)
RuntimeError: PyTorch does not currently provide packages for PyPI (see status at https://github.com/pytorch/pytorch/issues/566).
Please follow the instructions at http://pytorch.org/ to install with miniconda instead.
- 怎么办?找了一大圈,发现torch不支持win下的python2版本,需要升级,麻烦了。
- 老老实实升级到python3使用吧,这是赶尽杀绝的赶脚!(等后面升级了再琢磨了)