Python PIP Install throws TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
2017-08-11 22:08
711 查看
从source安装tensorflow时,安装到pip package命令
报错:
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
错误原因:公司机器需要代理,因此需要加上参数--proxy=url:port
sudo pip install --proxy=http://dev-myproxy.com:8080 /tmp/tensorflow_pkg/tensorflow-1.2.1-py2-none-any.whl
其中http://dev-myproxy.com:8080是你的公司代理服务器名和接口,.whl文件根据你的平台可能有不同,可以cd到tensorflow_pkg路径下看。
sudo pip install /tmp/tensorflow_pkg/tensorflow-1.2.1-py2-none-any.whl
报错:
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
错误原因:公司机器需要代理,因此需要加上参数--proxy=url:port
sudo pip install --proxy=http://dev-myproxy.com:8080 /tmp/tensorflow_pkg/tensorflow-1.2.1-py2-none-any.whl
其中http://dev-myproxy.com:8080是你的公司代理服务器名和接口,.whl文件根据你的平台可能有不同,可以cd到tensorflow_pkg路径下看。
相关文章推荐
- Python错误:TypeError: unsupported operand type(s) for +: 'int' and 'str'
- 关于python报错:TypeError: unsupported operand type(s) for +=: 'builtin_function_or_method' and 'int'
- python pip install 报错TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' Command "python setup.py egg_info" failed with error code 1 in
- TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
- Python初学者错误:TypeError: unsupported operand type(s) for +: 'int' and 'str'
- TypeError: unsupported operand type(s) for +: 'int' and ‘str’问题原因记录
- TypeError: unsupported operand type(s) for +: 'int' and 'str'
- python TypeError: unsupported operand type(s) for +: 'int' and 'str' [closed]
- TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
- J版bug之_get_host_numa_topolo TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
- 《机器学习实战》笔记:TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'
- TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
- python报错 TypeError: bad operand type for unary +: 'str' 的解决办法
- Python字符串与数字拼接 TypeError: cannot concatenate 'str' and 'int' objects
- keras error StopIteration unsupported operand type(s) for JpegImageFile
- scrapy遇到unsupported operand type(s) for +: 'Selector' and 'str'错误
- python TypeError: bad operand type for unary -: 'unicode'
- Python3.6:“猜数字游戏”TypeError: '<' not supported between instances of 'str' and 'int'
- Python---TypeError: '<' not supported between instances of 'str' and 'int'
- Python字符串与数字拼接报错解决TypeError: cannot concatenate 'str' and 'int' objects